fs::delete_file (public)

 fs::delete_file -item_id item_id [ -parent_id parent_id ] \
    [ -no_callback ]

Defined in packages/file-storage/tcl/file-storage-procs.tcl

Deletes a file and all its revisions. Note that we do not perform filesystem operations here. A trigger on cr_revisions informs the content repository about the deletion and periodic cleanup of files to be deleted is performed in a scheduled procedure.

Switches:
-item_id (required)
-parent_id (optional)
-no_callback (optional, boolean)

Testcases:
fs_add_delete_copy, fs_add_file_to_folder
[ show source ]
Show another procedure: