I want to remove attachments from closed requests in order to optimize disk usage. However, when I tried to do so using RemoveAttachments API, nothing seems to change in terms of disk utilization, but attachments no longer exist in corresponding list items. Does SharePoint have something like vault for deleted files or so?
Items which is deleted from SharePoint list,libraries are not deleted permanently. It will goes to recycle bin. deleted items/Attachments will goes to "Recycle Bin" of site collection. You can view,restore,delete items from recycle bin.By default, items in the Recycle Bin are deleted automatically after 30 days.
Site Settings--> Site Collection Administration--> Recycle bin.
So for permanently remove attachments you have to delete it from Recycle bin.
In Office 365 there is option "Empty recycle bin". But in SharePoint on premises you have to perform following steps,(USE IE Browser)
- Navigate to the recycle bin page (e.g., http://localhost/_layouts/recyclebin.aspx)
- Press Enter. You will be asked if you really want to empty the recycle bin.
- Click OK to empty it; click Cancel to leave it alone.
Let the Recycle Bin "Naturally" purge itself out, even the Secondary Recycle Bin. There are two Recycle Bins. The Secondary Recycle bin by default holds item for an additional 50% longer. This setting is only available to Site Collection Admins.