YouTip LogoYouTip

Met Delete File

# ASP Delete Method * * Complete File Object Reference Manual](#) * * * The Delete method deletes a specified file or folder. **Note:** An error occurs if the specified file or folder does not exist. The Delete method is used identically for folders with content and folders without content. Regardless of content, the specified folder is deleted. Applying the Delete method to a File or Folder object performs the exact same operation as using FileSystemObject.DeleteFile or FileSystemObject.DeleteFolder. ### Syntax FileObject.Delete[(force)] FolderObject.Delete[(force)] | Parameter | Description | | --- | --- | | force | Optional. A Boolean value that indicates whether read-only files or folders can be deleted. True indicates that read-only files/folders can be deleted, false indicates that they cannot. The default is false. | ### Example for File Object ### Example for Folder Object * * Complete File Object Reference Manual](#)
← Met Move FileMet Copy File β†’