126.96.36.199 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 RopDeleteFolderROP request ([MS-OXCROPS] section 188.8.131.52). If the folder is not empty, the client sets the DeleteFolderFlags field to delete all existing subfolders and messages, as specified in section 184.108.40.206.1. 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 220.127.116.11.2, indicates whether there are any subfolders or messages that could not be deleted and, consequently, that the folder was not deleted.