Delete Directory

This command deletes the specified directory. It will only work if the directory is empty.

 

Input Arguments

 

0

Directory Path

Directory

The directory to verify

 

Return Arguments

None.

 

Returned Status

 

SUCCESS

The directory was deleted.

FAILURE

The directory could not be found or was not empty.

Remarks

This command could be dangerous so it was written to only remove a directory if the directory is already empty. If you wish to eliminate a directory you will need to build a list of files in that directory, delete them first and then remove the directory.