Feature request: delete all records of a specific class (in collection/inbox) #18

Closed
opened 2026-02-01 20:31:50 +00:00 by mih · 1 comment
Owner
No description provided.
Owner

Implemented by PR #29, published in version 0.2.9

The PR adds the option -C/--class to the dtc subcommand delete-records. With this option delete-records attempts 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/--curated nor -i/--incoming is defined.

Implemented by PR #29, published in version 0.2.9 The PR adds the option -C/--class to the `dtc` subcommand `delete-records`. With this option `delete-records` attempts 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/--curated` nor `-i/--incoming` is defined.
cmo closed this issue 2026-02-06 12:41:12 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
orinoco/dump-things-pyclient#18
No description provided.