Met Deletefile
# ASP DeleteFile Method
* * Complete FileSystemObject Object Reference Manual](#)
* * *
The DeleteFile method deletes one or more specified files.
**Note:** If you attempt to delete a file that does not exist, an error will be raised.
### Syntax
FileSystemObject.DeleteFile(filename[,force])
| Parameter | Description |
| --- | --- |
| filename | Required. The name of the file to delete (wildcards can be used). |
| force | Optional. A Boolean value indicating whether read-only files can be deleted. True indicates that read-only files can be deleted, False indicates that they cannot. The default is False. |
### Example
* * Complete FileSystemObject Object Reference Manual](#)
YouTip