...
A) Delete storageentity
- The Default-Purge-Worker seraches 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 in 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 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