Destroy (delete) a directory with the given name.



Argument Description
dname The name of the directory to remove.

Returns: N/A


This function will remove a directory with the given name in the sandboxed local save area.

WARNING! This function may not work as you expect due to GameMaker: Studio being sandboxed! Please see the section on File System Limits for more information.


if directory_exists("DLC")

This will check to see if the specified directory exists in the local data folder and, if it does, it is removed.

Back: File Handling
Next: temp_directory
© Copyright YoYo Games Ltd. 2018 All Rights Reserved