directory_destroy

Destroy (delete) a directory with the given name.

Syntax:

GML Code Example

directory_destroy(dname)


Argument Description
dname The name of the directory to remove.


Returns: N/A


Description

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.


Example:

GML Code Example

if directory_exists("DLC")
    {
    directory_destroy("DLC");
    }
 

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here