How to use quick-delete for NetStorage
A "quick-delete" allows you to target a specific directory in a storage group and recursively delete all of its contents in a swift manner. It's supported for use with multiple NetStorage utilities.
- The Content Management (CM)
Shell: Support is available via these commands:
- The NetStorage Usage API: Support is available via the "quick-delete" action.
How do I enable quick-delete?
Quick Delete must be enabled using Control Center. This is performed when creating or editing a storage group. It's available in the ADVANCED OPTIONS settings for an Upload Directory.
This table lists the methods to perform a quick-delete. It includes what's supported, and the time the operation may take..
|Protocol||Operation||"quick-delete" Enabled||Time Required for the Command to Return Success 1||Extra Time Required Until Objects are no Longer Visible 1||Comments|
||No||O(N)||None||The system commits to recursively delete each object in the target directory.|
|Yes2||O(1)||O(N) / ~10||Scales the "Time Required for the Command to Return Success" similar to the standard version of rm -r (with "quick-delete" disabled). However, this method can be a magnitude faster in this respect because the per-object turnaround time seen with that instance of the call won't occur.|
||Either||O(1)||None||The target directory must be empty, otherwise an error will occur.|
||No||N/A||N/A||This is not supported without "quick-delete" enabled.|
|Yes||O(1)||O(N) / ~10||The command will return an instantaneous response,
and the deletion will take place in the background. This will have
the same result seen when using
|NetStorage Usage API||
||--||--||--||This action will perform the same, and require the
same amount of time as the "