Difference between revisions of "Os.remove"
From GiderosMobile
Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error. | + | <translate>Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
os.remove(filename) | os.remove(filename) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
− | '''filename''': (string) filename to delete <br/> | + | '''filename''': (string) <translate>filename to delete</translate> <br/> |
Revision as of 13:38, 23 August 2018
Available since: Gideros 2011.6
Description
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.
os.remove(filename)
Parameters
filename: (string) filename to delete