def deleteFile(self, file_id, ftype, linkonly=0): ident = model.Files.deleteFileById(file_id) page_obj = CMSModel.Pages.getPageById(amiweb.session()['current_page_id']) AmiCache.expireCurrentPage() return self.getEditHTML(ftype, ident, linkonly)