VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/asp-deletefolder-method/

⇱ ASP DeleteFolder Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP DeleteFolder Method

Last Updated : 23 Feb, 2021

The ASP DeleteFolder Method is used to delete one or more folders from the server. It returns an error if we want to delete a non-existing folder.  

Syntax:

FileSystemObject.DeleteFolder(foldername[,force])

Parameter Values:

  • foldername: It specifies the name of the folder which you want to delete.
  • force: It is an optional attribute. It contains a Boolean value which indicates that whether a read-only folder will be deleted or not.  It set to true means that the read-only folder will be deleted. False represents that the folder will not be deleted.

Example: Below example demonstrates the DeleteFolder Method.  

Output:

Folder is Deleted
Comment
Article Tags: