Description
- Deletes a file, or group of files.
Syntax
- File.Delete(filepath)
Parameters
- filepath
- (string) path to the file to delete
- Use wildcards to define a group of files.
Examples
- File.Delete(?"c:\temp\large.tmp")
- Deletes the file "large.tmp" in "c:\temp".
- File.Delete(?"c:\temp\*.tmp")
- Deletes all .tmp files in "c:\temp".
- File.Delete(?"c:\temp\*")
- Deletes all files in "c:\temp".