[xwiki-users] delete attachments - XWiki Enterprise 3.0- new filesystem storage
"Deleted" attachments are not deleted in version. 3.0 with new file system storage . Is this intended or a malfunction? After testing with some Gigabyte-files my hard disk was getting full because of these "deleted" files. Volker -- View this message in context: http://xwiki.475771.n2.nabble.com/delete-attachments-XWiki-Enterprise-3-0-ne... Sent from the XWiki- Users mailing list archive at Nabble.com.
If you were to roll back the version of the document, you would (presumably) want your "deleted" attachments back. This is always how it was except that before, it was hidden in the database. Unfortunately, XWiki Enterprise user interface has no mechanism for making a deleted attachment vanish from history. However, XWiki Platform has the API functions to do that and you can access them from script: #foreach($delAttach in $xwiki.getDeletedAttachments('Main.WebHome')) #if ($delAttach.getFilename() == 'reallyBigFile.iso') $delAttach.delete() #end #end And that will perminantly remove any deleted attachment called 'reallyBigFile.iso' from the document 'Main.WebHome'. More information about the API functions available in platform: http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com... Caleb On 04/04/2011 02:36 PM, Legeinfo wrote:
"Deleted" attachments are not deleted in version. 3.0 with new file system storage . Is this intended or a malfunction? After testing with some Gigabyte-files my hard disk was getting full because of these "deleted" files. Volker
-- View this message in context: http://xwiki.475771.n2.nabble.com/delete-attachments-XWiki-Enterprise-3-0-ne... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
On 04/05/2011 09:19 AM, Caleb James DeLisle wrote:
If you were to roll back the version of the document, you would (presumably) want your "deleted" attachments back. This is always how it was except that before, it was hidden in the database.
Unfortunately, XWiki Enterprise user interface has no mechanism for making a deleted attachment vanish from history.
Yes it does, in the document index (Main.AllDocs) there's a Deleted Attachments section (XWiki.DeletedAttachments) which lists all the deleted attachments, and has buttons for permanently deleting them.
However, XWiki Platform has the API functions to do that and you can access them from script:
#foreach($delAttach in $xwiki.getDeletedAttachments('Main.WebHome')) #if ($delAttach.getFilename() == 'reallyBigFile.iso') $delAttach.delete() #end #end
And that will perminantly remove any deleted attachment called 'reallyBigFile.iso' from the document 'Main.WebHome'.
More information about the API functions available in platform: http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/com...
Caleb
On 04/04/2011 02:36 PM, Legeinfo wrote:
"Deleted" attachments are not deleted in version. 3.0 with new file system storage . Is this intended or a malfunction? After testing with some Gigabyte-files my hard disk was getting full because of these "deleted" files. Volker
-- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
Caleb James DeLisle -
Legeinfo -
Sergiu Dumitriu