Task #3272
Updated by Tim Pierce over 9 years ago
* Maintain a cache {token → (is_admin, verified_timestamp)} with configurable TTL, so a series of N delete requests doesn't result in N token verifications.
* If the token passes verification, delete all copies of the specified block from all (non-read-only) volumes. Respond 200 OK with body like {"copies_deleted":2,"copies_not_deleted":1} (this would mean one copy was found on a read-only volume, two copies were found on writable volumes).
* The same token cache will also be useful in the future for things like enforcing storage quotas, so please make it easy to add fields to the cache values.