How do you delete Wiki attachments?

Our /Library/Server/Wiki/FileData folder is about 7 GB, and I noticed that any time Server.app checks Wiki's settings, there's a mds/mdworker process in the background that rips through this folder before Server.app is able to report back. I think this had a lot to do with Server.app's unresponsiveness.
So, I've done some finds to see where some of the larger culprits are in that directory as follows:
bash-3.2# find /Library/Server/Wiki/FileData -size +30M
./FileData/08/4d/4bff-af85-4d15-b42e-44072b1c9ee7/Implementation ppt.ppt
./FileData/01/50/341f-468f-44c4-86ce-a06defefdb39/Implementation W'shop.zip
./FileData/06/d0/5725-f20c-4642-b33f-ace9cacc39b1/Implementation W'shop 2.key
./FileData/08/25/8b1f-6d2b-45c6-9054-283dc735f4f8/Implementation W'shop 2.zip
The next thing I did was to search through the Postgres database to see where those files were located. I used this command to connect if you're interested:
/Applications/Server.app/Contents/ServerRoot/usr/bin/psql -U _postgres -h /Library/Server/PostgreSQL\ For\ Server\ Services/Socket/ collab
From there, I searched the entity table for those unique IDs (removing the slashes):
collab=# select * from entity WHERE uid = '084d4bff-af85-4d15-b42e-44072b1c9ee7';
You can reduce the fields shown to only show the ID, long name, and parent ID and type as follows:
collab=# select uid, long_name, ownedby_uid_fk from entity WHERE uid = '084d4bff-af85-4d15-b42e-44072b1c9ee7';
The results look like this:
                 uid                  |                long_name                 |            ownedby_uid_fk           
--------------------------------------+----------------------------------------- -+--------------------------------------
084d4bff-af85-4d15-b42e-44072b1c9ee7 | Implementation ppt.ppt | c8d549b2-edb3-471f-a9f6-e56e02e208d3
(1 row)
I then searched the same table for the record that owns the attachment:
collab=# select uid, long_name, ownedby_uid_fk from entity WHERE uid = 'c8d549b2-edb3-471f-a9f6-e56e02e208d3';
Result:
                 uid                  |         long_name          |            ownedby_uid_fk           
--------------------------------------+----------------------------+------------ --------------------------
c8d549b2-edb3-471f-a9f6-e56e02e208d3 | Some Wiki Page Name | 41b2e7c6-04f4-4dea-a2cc-732d7ce9d492
Armed with the name of the relevant Wiki page, I jumped on to the Wiki as a local administrator, found that page, and deleted it permanently.
BUT....
1. The file attachment is still present in the finder
2. The Attachment record, and its parent Page are both still present in the Entity table
So, how do you really delete this content?
P.S. How can I more properly format blocks of code here? I'm choosing a monospaced font, but I want to prevent line breaks too.

The problem is, I want to keep the emails as a record WITH attachments, but I don't want to have hundreds of temporary files (attachments) somewhere on my iPad. For instance, on my PC I can download an attachment to view it, then delete it later, and I will still have the original email with the attachment which I can access and re-download at any time in the future.
I thought there might be some kind of 'delete temp files' under Mail in Settings but there doesn't appear to be anything like this. I think a possible solution may be to delete the mail profile from my iPad and then add it again. However this is not ideal at all.

Similar Messages

  • How do you delete .pdf files?

    How do you delete pdf files from android Adobe Reader?  I  can delete the files, how do I
    delete the file name from the Adobe Reader file list, especially duplicate file names.
    someone  please help me. this will have to be done from  within the Reader, I  think. ?

    The full instructions are here: http://learn.adobe.com/wiki/display/readermobile/Android+FAQ.
    Ben

  • TS4002 how do you save email attachments on the ipad?

    how do you save email attachments on the ipad? particularly ebooks sent via email

    JanieHaas wrote:
    How do you save your notes permanently on the iPad? I have been taking notes on it and realized that after a week or so, my notes are deleted
    Teh notes are sync'd to your mail app on your computer.

  • How do you "delete all" email on iPhone 4S?

    How do you "delete all" email on iPhone 4S?

    There is no delete all option, unless you want to remove the email account, but I doubt that is what you are seeking.

  • How do you delete all contacts on iPhone 4S? I have tried to sync my contacts and it has resulted in doubling and now tripling the

    How do you delete all contacts on iPhone 4S? I have tried to sync and end up w/duplicates and now triplicates. 4,000 contacts have now turned into 12,000 contacts!! I "upgraded" to Lion and hate it - it was so much easier before. I managed to delete on MacBook (to start from scratch there), but cannot delete from iphone or ipad. I am so frustrated! Please help

    Hi Cynthia!  If you are syncing from something like Gmail you can go into the iPhones Settings>Mail, Contacts, Calendars>(account you are syncing)> and turn off contacts. It will ask you if you want to delete them from your phone - just click delete.  Exit Settings and turn phone off by power button (not all the way OFF).  Then re-open Settings>mail, Contacts, Calendars>(account you are syncing)> and turn Contacts back on - This is where you need to be careful - When you turn contacts back on you will be prompted to delete or save the contacts already on your phone. CLICK DELETE.  You should now have only your synced contacts on your phone!  Hope it helps!

  • HT4528 How do you delete 'SAVED MESSAGES' on iPhone 5s

    How do you delete 'SAVED MESSAGES' on iPhone 5s?  It's taking up about 10GB of 32 GB capacity.

    After much searching on the web and reading many (sometimes amusing) posts on this topic here is what I have found.
    In Settings>General>Usage my saved mesages were using 3.2Gb and no apparently immediate way of deleting them.
    However as the good book says "seek and ye shall find".
    SO this is where I went:
    Settings>iCloud>Account> then scroll down to ADVANCED and select Mail; again scroll down to the bottom and select Advanced and yet again scroll to the bottom (well at least to DELETED MESSAGES) and tap on the line called Remove.
    Here at last you will find a setting that enables you to select the period after which iOS will remove your deleted messages.
    The shortest period is one day so you will haev to wait 24 hours to finally have that memory back but it should work and is a nice feature in iOS although it is well burried!!

  • How do you delete a web page

    How do youi delete a web page

    Hi,
    My version of "your Starter for ten.."
    Some websites are able to override the tab setting you may have set and open a second window behind the current open one.
    Use the Red/Close button top left when this happens.
    9:02 pm      Sunday; April 13, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How do you delete a web site out of bookmarks?

    How do you delete a web site completely out of browser bookmarks. I had a website (snapfish) that I put in browser and saved as favorite then put a widget on homepage for easy acceess and I put a screen name in instead of my email address and everytime i try to log in the screen name is on log in and I erase and put in email address but when I hit log in it reverts to wrong name again so cant access my snapfish account. I dont want all my sites to be erased out of browser favorites so is there a way to erase snapfish account out of browser bookmarks and then start over so I can put in correct  log in names?

    Open browser.
    menu button.
    press bookmarks.
    Looonnnngggg press on the bookmark you want to delete.
    Scroll down window.
    Press Delete bookmark.
    that should do it.

  • How do you delete an email address from your iPhone that's not in your contacts?

    How do you delete an email address from your iPhone that's not in your contacts?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How do you delete duplicate tracks off your playlist?!

    How do you delete duplicate tracks off your playlist - everytime I connect my hard-drive it adds another of every single track - argh!!!!
    I remember there being a 'delete duplicate tracks' option on a much older version of itunes - is this still available and if not if you opt for the 'consolidate library' option will this automatically save to you computer as I have too much music for my laptops memory capacity! On top of that how can I stop this issue from contantly re-occuring everytime I connect my hard-drive?! Apologies if im being thick here.... xX*laura*Xx

    You are doing something wrong, iTunes doesn't add tracks to the library unless you ask it to, so there is a problem somewhere in your workflow which is creating the duplicates. For example, having iTunes set up to "Copy files to the iTunes Media folder when adding to library" and then repeatedly adding in a folder from an external drive would do it.
    Once you've worked out how to stop creating new duplicates you can look at the issue of deduping what you already have. See this recent post for some thoughts and a script that may prove useful.
    tt2

  • How do you delete purchased songs from your itunes library?

    How do you delete purchased songs from your itunes library - My adult kids who now have their own itunes accounts, when they were in high school purchased songs on my account and I'd like to get rid of them - Don't really want to hear the music they listened to when they were in high school!  help!

    Click here and follow the instructions. You may also need to turn off automatic downloads.
    (111585)

  • How do you delete duplicate songs in your library without having to delete each song individually??

    How do you delete duplicate songs in your library without having to delete each song individually?

    mauijiminar wrote:
    Go to iTunes, select view and click show duplicates. Hold control and A ( select all) and then delete.
    Not a good idea! The "show duplicates" feature shows "all" duplicate tracks, but you only want to delete the "extra" copies, not the "originals".
    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background, including how to delete the extra tracks manually if you prefer.
    tt2

  • How do you delete songs that you purchased through iTunes but don't show up when you connect the iphone to iTunes they don't show up in music when you click on "On this phone"? I have my phone setup to manually manage music. Please help.

    How do you delete songs that you purchased through iTunes but don't show up when you connect the iphone to iTunes? They don't show up in the music section when you click on "On this phone". Side Note: I have my phone setup to manually manage music. Please help.

    Hi, Mrs.Frankie57. 
    Thank you for visiting Apple Support Communities.
    If you want to delete a song from your iOS device on iOS 7, tap Songs, swipe the song from right to left, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    iPhone User Guide
    Cheers,
    Jason H.

  • How do you delete songs from Itunes? I have many that show up as many as 7 times and itunes will not allow me to remove them.

    How do you delete songs from Itunes? I have many that show up as many as 7 times and itunes will not allow me to remove them.

    I have tried to Hilight them and hit Control Delete nothing happens. I tried to just Delete one, but when you hit delete nothing happens.

  • How do you delete a song from a playlist in iTunes?

    I feel stupid asking this question but how do you delete a song from a playlist? right clicking doesn't give a menu option to do it, and neither does the file menu. The highlight/delete option doesn't work either.
    Also, I've ended up with several copies of the same songs in my library . Can i delete the excess tracks in one go without highlighting them?
    Thanks,
    Dom

    Option-delete will remove a selected track from a playlist AND the library. Delete will just remove the track from a regular playlist.
    Yes, you need to highlight all the songs you want to delete. Sort your library by song title. This should put all the dups together for easy highlighting and deleting.

Maybe you are looking for