Design Undoable Deletion for API Collections
Model soft deletion and undo for shared API collections while preserving permissions, versions, and concurrent edits.
Design undo-delete behavior for Postman-like API collections inside a workspace.
For this exercise, assume an authorized editor may delete a collection, the collection remains recoverable for 30 days, undo restores the same stable collection identity, reads hide deleted collections by default, and concurrent delete, restore, and edit commands must not silently lose a newer state.
Permanent purge runs asynchronously after retention. Treat one workspace collection as the consistency boundary; at large scale, purge work must be partitionable and processed in bounded batches.
Preserve access-controlled lifecycle audit history, and retain proof of permanent purge without retaining the deleted payload.