Skip to content

Create "pelican object remove" command #2239

@aowen-uwmad

Description

@aowen-uwmad

Pelican Service:

  • Client
  • Plugin
  • Registry
  • Director
  • Origin
  • Cache
  • Other (please give the detail)

Is your feature request related to a problem? Please describe.
An increasing number of researchers only have access to the data storage via the connected Origin.
Since changes to an object require a change to the object name, over time multiple similar copies of objects will accumulate in the storage while only the most recent copy is used.
Removing the old copies of the object is necessary to prevent unbounded growth in the storage.
Currently, the only way to do this is with direct access to the storage, which is not possible for users whose access is only via the Client.

Describe the solution you'd like
Implement a pelican object remove command.

  • Requires write permissions & authentication (or at least, similar level)
  • Prompts user to confirm removal (can be bypassed using --force flag)
  • Includes somewhere a warning about not affecting cached copies, and proscription against reusing object name
  • Recursive functionality

Additional context
In principal, a user could use pelican object put <0-byte object> <PelicanURL removal target> to "remove" the object contents from the storage. This is NOT intuitive to users. Furthermore, the storage would accumulate 0-byte objects and for a large enough number of files, the file metadata for said objects would be a non-trivial contribution to the storage usage.

Metadata

Metadata

Assignees

Labels

FacilitationA request from the RCF'sclientIssue affecting the OSDF clientenhancementNew feature or requestoriginIssue relating to the origin componentuser-request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions