fs::delete_version (public)

 fs::delete_version -item_id item_id -version_id version_id

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

Deletes a revision. If it was the last revision, it deletes the file as well. 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)
-version_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_fs_add_delete_copy fs_add_delete_copy (test file-storage) fs::delete_version fs::delete_version test_fs_add_delete_copy->fs::delete_version db_exec_plsql db_exec_plsql (public) fs::delete_version->db_exec_plsql fs::delete_file fs::delete_file (public) fs::delete_version->fs::delete_file packages/file-storage/www/version-delete.tcl packages/file-storage/ www/version-delete.tcl packages/file-storage/www/version-delete.tcl->fs::delete_version

Testcases:
fs_add_delete_copy
[ show source ]
Show another procedure: