function deletes an empty directory or group of empty directories. The argument directory_name
is a string expression giving a directory name.
You can use the wildcard characters "*" and "?" to specify a group of directories to delete.
The function returns the number of directories deleted. If there was an error deleting directories, the function returns default
// delete directory "Backups" from the application folder
dirdelete(pathname(Application) + "Backups");
// delete all directories that begin with "Backup" from the application folder
dirdelete(pathname(Application) + "Backup*");