Data Type: File object
A File object.
Data Type: Boolean
If set to
ignores the file’s read-only flag (if it’s on), and deletes
Removes the current file.
The Delete method deletes a file permanently; it does not move it to the Recycle Bin.
If the file is open, the method fails with a “Permission Denied” error.
The default setting for
Force is set to
False, and the file is read-only, the
method will fail.
Unlike the FileSystemObject object’s DeleteFile method,
which accepts wildcard characters in the path parameter and can
therefore delete multiple files, the Delete method deletes only
the single file represented by
As a result of the Delete method, the Files collection
automatically updated, the deleted file is removed from the
collection, and the collection count is reduced by one. You
shouldn’t try to access the deleted file object again; you