RemoveSubFolder
Delete a subfolder by name
BOOL RemoveSubFolder( LPCSTR lpcszSubFolderName, BOOL bFolderPrompt = FALSE, BOOL bPagePrompt = FALSE )
TRUE on success, FALSE on failure
EX1
// Remove all subfolders in a project // WARNING! DESTRUCTIVE EXAMPLE void Folder_RemoveSubFolder() { Folder fld = Project.RootFolder; Folder subfld; foreach(subfld in fld.Subfolders) { printf("Returned %u\n", fld.RemoveSubFolder(subfld.GetName())); } }
Remove the subfolder with the name specified in lpcszSubFolderName.
If bFolderPrompt or bPagePrompt is TRUE then Origin will prompt the user to verify.
origin.h