defclearData(self,REQUEST=None):""" this allows to erase every data object """context=selfforfolderincontext.objectValues(("ERP5 Folder",)):print"#### Deleting inside the folder %s ####"%folder.id# Getting the list of idsto_delete_list=folder.objectIds()whilelen(to_delete_list)>0:foridinto_delete_list:folder.manage_delObjects(id)to_delete_list=folder.objectIds()get_transaction().commit()print"work done"