Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Expose deletion endpoints for the brave #341

Open
pgunn opened this issue Jan 3, 2020 · 5 comments
Open

Feature Request: Expose deletion endpoints for the brave #341

pgunn opened this issue Jan 3, 2020 · 5 comments
Assignees

Comments

@pgunn
Copy link
Contributor

pgunn commented Jan 3, 2020

Right now some kinds of deletions need to happen using the commandline tool. This feature request is to offer an alternative

Specifically:

  1. Add a configfile option to enable deletion endpoints
  2. Optionally require use of a password (or passwordfile) in the configfile, a kerberos token, or some other kind of authentication for these endpoints
  3. With that token/password/whatever (if applicable) passed along, allow remote instance/repo deletion and other dangerous operations

(If you prefer the comfort in not having APIs for these things so you know for sure that no bugs in the code would allow these kinds of operations to happen remotely, I get it and that might be a reason to reject this feature request)

@DocSavage
Copy link
Member

Very basic authentication was added recently and for the upcoming v1.0 dvid that will be expanded to include authorization. When that happens, we'll be able to add endpoints for deletion. Also, when the backend is simplified to use the new DAGStore, there will be an option to actually delete appropriate directories without even going through endpoints, for those that go through the documentation on how the data is organized.

@DocSavage DocSavage self-assigned this Jan 3, 2020
@xiuliren
Copy link

It would be nice to be able to delete the label indices and label map if possible. I have a related issue of nuclease here:
janelia-flyem/neuclease#11

@DocSavage
Copy link
Member

@jingpengw This issue is about a repo-level request deleting a data instance, and that may involve multiple types of data associated with that single data instance. In your case, you want to delete one aspect of a labelmap instance which should be handled at the datatype interface level. You've already found the workaround using an endpoint at that level. If you need a "delete all label indices" command, let me know and I can add that fairly quickly as a command line.

@xiuliren
Copy link

xiuliren commented May 21, 2022 via email

@xiuliren
Copy link

xiuliren commented Jul 9, 2023

I am also looking for the function to delete some instances, such as mesh_cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants