Feature request: delete all records of a specific class (in collection/inbox) #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implemented by PR #29, published in version 0.2.9
The PR adds the option -C/--class to the
dtcsubcommanddelete-records. With this optiondelete-recordsattempts to delete all records of the given class from the token-associated inbox, the curated area, or from a specific inbox of the collection.Because non-curator access can only read the (pid-based) union of records from the token-
associated inbox and the curated area, it cannot determine which records are in the inbox and which
records are in the curated area. It assumes that all records that are listed for a given class are
located in the inbox and tries to delete all of them. This might lead to warnings for those records that are in the curated area, because (inbox-based) deletion would fail for them. The pids of all records that could not be deleted are printed at the end of the execution.
This restriction applies only if neither
-c/--curatednor-i/--incomingis defined.