Garry's Mod Wiki

Revision Difference

file.Delete#514972

<function name="Delete" parent="file" type="libraryfunc">⤶ <description>⤶ Deletes a file or `empty` folder that is relative to the **data** folder.⤶ You can't remove any files outside of **data** folder.⤶ </description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="name" type="string">The file name</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Deletes **data/helloworld.txt** file.</description>⤶ <code>file.Delete( "helloworld.txt" )</code>⤶ ⤶ </example>