Rollback option when db crash
After creating folder or uploading files into box there will be chance of occuring backend database crash or lose connection between datasource . In this case we should roll back our transaction(like revert folder creation or file upload).
1
vote

Many actions in both are idemptotent and can be safely retried. For those which are not, it is the responsibility of a client to implement transaction guarantees if required. There are common patterns for this such as the two-phase commit and SAGA pattern. If there is more information for a specific capability that is required to faciliate these, please add that to the comments.