Example:
// UnLink the folder from its parent.
stat = SmsUnLinkFolder( hFolder );
If the parent folder's handle is still open, your application can link the folder to its parent again.
Example:
// Remove the folder from the site database.
stat = SmsCommitFolder( hFolder );
Note that the folder is not deleted from the site database until the application calls the SmsCommitFolder function for that folder. If you do not want to delete the folder from the database, do not commit the unlinked folder.
Important After your application deletes a folder from the site database by using the SmsCommitFolder function, the handle for the deleted folder can only be used for closing the folder with the SmsCloseFolder function.