destory
Description
The destroy command permanently deletes files that have already been marked as deleted in a specified directory. This command supports recursive deletion and filtering by date.
Syntax
destroy -directory -recursive -date
Parameters
directory: The directory to destroy.recursive: Enables recursive search (for files).date: (Optional) Specifies a date filter. Only files deleted on or before the specified date will be destroyed. The date format should be YYYY-MM-DD.
Examples
destroy -directory "C:\Projects\Project"
# destory
Remarks
- The
directoryparameter is mandatory and must specify a valid directory. - Use the
recursiveparameter with caution, as it will process all subdirectories within the specified directory. - The
dateparameter allows you to target files deleted on or before the specified date, providing more control over the destruction process. - This action is irreversible. Ensure you have the necessary permissions and have reviewed the files before executing the command.
Tutorial
Availability
Available since PDMShell 2.0.5.