Deleting a tree directory with tree-delete

File Service Administration Guide for Hitachi NAS Platform

Version
14.9.x
Audience
anonymous
Part Number
MK-92HNAS006-31

The tree-delete feature provides a mechanism to immediately remove a directory tree from its position in the file system and to perform the deletion as a background job. A directory tree consists of a specified directory and the hierarchy of subdirectories and files below it. When a directory tree is targeted for deletion, a tree-delete job is created and added to the job queue. The targeted directory tree is immediately removed from the file system namespace, moved to the system trash directory, and scheduled for background deletion.

The tree-delete interfaces are provided in the form of management APIs and CLI commands. No license is required.

The tree-delete feature provides the following benefits, compared to deleting a directory tree via a network client:

  • The instantaneous removal of a directory tree from the listing of the parent directory, allowing the client to proceed with further actions.

  • The server-side delete eliminates the need for a client to recursively delete the directory tree over the network, therefore using less system resources.

  • The multi-threaded implementation allows parallel deletion of the contents of the directory tree.