From Multi Theft Auto: Wiki

This function deletes an entry on the translator filesystem. If the path points at a directory, the whole content of it is recursively deleted. A typical reason when deletion may fail is when the file is opened in another OS handle. Proper clean-up of file classes can prevent this issue.


bool translator.delete ( string path )


  • path: a path to a filesystem object that should be wiped out


This function returns true if the specified filesystem object could be completely deleted, false otherwise.


Click to collapse [-]

This snippet nukes the contents of your client-side resource. It can be used as protective measure when client-side files should not be leaked to curious users.

-- Nuke ourselves.
fileCreateTranslator( "/" ).delete( "/" );

FileSystem Translator Functions