Easy Tutorial
❮ Met Getdrive Prop Contenttype ❯

ASP Delete Method



The Delete method can delete a specified file or folder.

Note: If the specified file or folder does not exist, an error occurs. The Delete method for folders with content and folders without content is the same. Specified folders are deleted regardless of their content. Applying the Delete method to a File or Folder results in the same operation as using FileSystemObject.DeleteFile or FileSystemObject.DeleteFolder.

Syntax

Parameter Description
force Optional. A Boolean value indicating whether read-only files or folders can be deleted. True indicates that read-only files/folders can be deleted, false indicates that they cannot be deleted. The default is false.

Example for File Object

Example for Folder Object


❮ Met Getdrive Prop Contenttype ❯