VOOZH about

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

⇱ ASP Delete Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP Delete Method

Last Updated : 23 Jul, 2025

The ASP File.Delete Method is used to delete a particular file or folder from a system. 

Syntax 

FileObject.Delete[(force)]
FileObject.Delete[(force)]

Parameter Values:

  • force: It is an optional attribute. It contains a Boolean value which indicates that whether a read-only file will be deleted or not.  It set to true means that the read-only file will be deleted. False represents that the file will not be deleted.

Example 1: Below code illustrates the ASP File.Delete Method

Output:

GFG.txt file is deleted

Example-2: Below code demonstrates the ASP folder.delete Method.

Output:

GFG Folder is deleted
Comment
Article Tags: