Delete
The Delete internal command can be used to:
Recycle files and folders (delete them to the recycle bin)
Delete files and folders permanently (bypassing the recycle bin)
Securely erase files so they can't ever be recovered
Empty the recycle bin
Remove items from a file collection
Command Arguments:
ALL
/S
(no value)
Example: Delete ALL
EMPTYRECYCLE
/O
(no value)
Empty the system recycle bin. You can combine with the FORCE argument to suppress the confirmation prompt, and the QUIET argument to suppress the progress dialog.
Example: Delete EMPTYRECYCLE FORCE QUIET
<drive letter>
Empty the recycle bin for a specific drive.
Example: Delete EMPTYRECYCLE=C:
ERASEEMPTYSPACE
/O
(no value)
Erase empty space on the current drive. Empty space will be overwritten with random data to ensure deleted files cannot be recovered. This can take a long time, and generally only makes sense with HDDs, not SSDs. (To secure-erase a single file (that hasn't been deleted yet) instead, see the SECURE argument instead.)
Example: Delete ERASEEMPTYSPACE
<drive letter>
Erase empty space on the specified drive. Must be the first parameter.
Example: Delete ERASEEMPTYSPACE=D:
passes:<n>
Specifies the number of erase passes, from 1 to 32. If omitted, the previous number of passes will be remembered, and a single pass will be used if no previous number exists.
Example: Delete ERASEEMPTYSPACE=passes:1
If both a drive letter and pass count are given, the drive letter must be the first parameter.
Example: Delete ERASEEMPTYSPACE=D:,passes:2
FAILNOTEMPTY
/S
(no value)
Fail when attempting to delete a non-empty folder, or any file. Must be combined with the NORECYCLE argument.
Example: Delete FAILNOTEMPTY NORECYCLE
Use SKIPNOTEMPTY instead if you want the command to continue considering other items after encountering a file or non-empty folder.
FILE
/M
<filename> ...
Specifies the name of the file or files to delete. If you don't provide this argument the command will delete all selected items in the source Lister. This is the default argument for the Delete command - you don't need to specify the FILE keyword.
Example: Delete *.tmp
FILTER
/O
(no value)
Example: Delete FILTER
<filter>
Example: Delete FILTER "temp files"
shift
Delete with filtering enabled if the Shift key is held down. Opus will prompt you to define the filter.
Example: Delete FILTER=shift
alt
Delete with filtering enabled if the Alt key is held down.
Example: Delete FILTER=alt
ctrl
Delete with filtering enabled if the Ctrl key is held down.
Example: Delete FILTER=ctrl
FILTERDEF
/K/R
<filter>
This is a /R argument and so everything after the FILTERDEF keyword will be treated as the argument's value.
Example: Delete FILTERDEF name match *.zip and size match > 2 mb
FORCE
/S
(no value)
Example: Delete FORCE
NOFROMFOCUS
/S
(no value)
The default behaviour for the Delete command is to operate on either the source file display, or the Folder Tree, depending on which one has the input focus. This lets you use the same command to delete folders in the tree as well as items in the file display. Specify this argument to force the command to always operate on the source file display and ignore the folder tree.
Example: Delete NOFROMFOCUS
NORECYCLE
/S
(no value)
Example: Delete NORECYCLE
QUIET
/S
(no value)
Prevent the display of any confirmation dialogs or error messages.
Example: Delete FORCE QUIET
RECYCLE
/S
(no value)
Example: Delete RECYCLE
REMOVECOLLECTION
/O
(no value)
Remove selected files and folders from the file collection. If used outside of a file collection this command will do nothing.
Example: Delete REMOVECOLLECTION
auto
When used on files and folders in a file collection, the items will be removed from the collection. When used outside of a file collection, the items will be deleted as normal.
Example: Delete REMOVECOLLECTION=auto
SECURE
/O
(no value)
Example: Delete SECURE
<passes>
Perform a secure delete using the specified number of passes (from 1 to 32 depending on your level of paranoia :)
Example: Delete SECURE=5
SHIFT
/S
(no value)
Modifies the behaviour of the Delete command if the Shift key is held down.
If the Delete to Recycle Bin option is not selected, the command acts as if the ALL and FORCE arguments are specified. In either case, if the Shift key is not held down, the SHIFT argument has no effect on the normal operation of the command. This argument is used to emulate the behaviour of Explorer.
Example: Delete SHIFT
SKIPNOTEMPTY
/S
(no value)
Skip over non-empty folders, and all files, without deleting them, while still considering subsequent items for deletion. Must be combined with NORECYCLE.
Example: Delete NORECYCLE SKIPNOTEMPTY
Use FAILNOTEMPTY instead if you want the command to stop completely as soon as it encounters any file or non-empty folder.
最后更新于