file.Delete
From GMod Wiki
Function | |
Syntax |
file.Delete( String filename ) Where is this used? |
Description: | |
Delete a file. | |
Returns: | nil |
Part of Library: | File |
Realm: | |
Warning: | This is a dangerous function. Use it with care! |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=File.Delete]File.Delete [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This example deletes the file "my_mod/data.txt" |
---|---|
Used on | |
Code | file.Delete("my_mod/data.txt") |
Output | N/A |
Additional Notes
- This function follows similar rules as file.Write in that you can only delete files within the data directory, and may only delete files ending in '.txt'.