winamp/Src/external_dependencies/openmpt-trunk/include/premake/website/docs/os.remove.md

36 lines
537 B
Markdown
Raw Normal View History

2024-09-24 12:54:57 +00:00
Remove files from the file system.
```lua
os.remove("path", ...)
```
### Parameters ###
`path` is the file system path to be removed. Wildcard matches are supported, see [os.matchfiles](os.matchfiles.md) for examples.
### Return Value ###
True if successful, otherwise nil and an error message.
### Availability ###
Premake 5.0 or later.
### See Also ###
* [os.rmdir](os.rmdir.md)
* [os.matchfiles](os.matchfiles.md)
### Examples ###
```lua
local ok, err = os.remove{"**.bak", "**.log"}
if not ok then
error(err)
end
```