Table of Contents

destory

alias destFree

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

Parameter Alias Required Description
-directory -dir Yes The directory to destroy.
-recursive No Enables recursive search (for files).
-date No 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 directory parameter is mandatory and must specify a valid directory.
  • Use the recursive parameter with caution, as it will process all subdirectories within the specified directory.
  • The date parameter 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