When the Default-Purge-Worker is started the following actions take place:
A) Delete storageentity
- The Default-Purge-Worker seraches for storageentities with state = TO_BE_DELETED
- it sets the state to IS_DELETING
- it deletes the file
- it deletes the storageentity in the database
- if there was an error, it sets the state of the storageentity to DELETING_ERROR
B) Delete file only
- The Default-Purge-Worker seraches for storageentities with state = TO_BE_DELETED_BINARY
- it sets the state to IS_DELETING_BINARY
- it deletes the file
- it sets the state of the storageentity to DELETED_BINARY
- if there was an error, it sets the state of the storageentity to DELETING_ERROR