Deleting a Folder

To be deleted, a folder MUST exist, and the client needs the access rights to delete it. To delete a folder, the client sends a RopDeleteFolder ROP request ([MS-OXCROPS] section If the folder is not empty, the client sets the DeleteFolderFlags field to delete all existing subfolders and messages, as specified in section The DeleteFolderFlags field can also be used to specify a hard deletion, when the DELETE_HARD_DELETE bit is set. The PartialCompletion field of the ROP response, as specified in section, indicates whether there are any subfolders or messages that could not be deleted and, consequently, that the folder was not deleted.