DELETE Command Documentation
DESCRIPTION:
The delete command is used to delete files or directories from the PDM system. It supports various parameters to specify the target files or directories, including file paths, directory paths, search queries, and IDs. The command also supports recursive deletion for directories.
SYNTAX:
delete [-filePath|-id] -directory -search -recursive -list -csv
PARAMETERS:
filePath: (Optional) Specifies the file path of the file to be deleted.directory: (Optional) Specifies the directory to be deleted. If used with the -recursive parameter, all files and subdirectories within the directory will also be deleted.search: (Optional) A search query to filter files or directories to be deleted.id: (Optional) Specifies the ID of the file to be deleted.recursive: (Optional) Deletes all files and subdirectories within the specified directory. This parameter is only applicable when deleting directories.list: (Optional) Lists all the deleted files. Specifyingrecursivewith this parameter will do a drill down search and fetch all deleted files.csv: Exports a list of deleted files to a csv. This only works iflist is specified.destroy: If specified, the deleted file will be also destroyed.-destroyonly affects results from thesearchparameter.
Note
Use the exported csv from -csv with the recover command.
Note
-destroy only affects results from the search parameter.
EXAMPLES:
Delete files matching a search query:
delete -search "%.sldprt"
# delete all parts in the current directory
REMARKS:
- The delete command requires at least one of the following parameters:
filePath,dir,search, orid. - Use the
recursiveparameter with caution, as it will delete all contents within the specified directory. - Ensure you have the necessary permissions to delete files or directories in the PDM system.