The web UI tries to lock the folder for every delete operation, this fails if a delete is already ongoing.
We should probably reuse the existing lock token.
We should also store whether a lock is being requested as some requests are failing due to a DB duplicate constraint error.
This is probably an issue for other operations.
Request flow when deleting 5 files simultanously:

500 error:

403 error:

cc @susnux
The web UI tries to lock the folder for every delete operation, this fails if a delete is already ongoing.
We should probably reuse the existing lock token.
We should also store whether a lock is being requested as some requests are failing due to a DB duplicate constraint error.
This is probably an issue for other operations.
Request flow when deleting 5 files simultanously:

500 error:

403 error:

cc @susnux