When the Default-Purge-Worker is started the following actions take place:
A) Delete storageentity
- The default purge-worker searches for storageentities with state = TO_BE_DELETED
- it sets the state to IS_DELETING
- it deletes the file
- it deletes the storageentity from 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