-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
Goal:
- A user should be able to delete or bulk delete snapshots
- DELETE /content-sources/api/v1/repositories/<uuid>/snapshots/<uuid>
- POST /content-sources/api/v1/repositories/<uuid>/snapshots/bulk_delete/
- body: { uuids: [] }
- Deleting a snapshot should also delete the repository version, publication, and distribution in pulp. This would need a new task. Task should delete one or multiple snapshots.
- Want to soft delete the snapshot so the task can still use it.
- Update a template to next snapshot before deleting
Acceptance Criteria:
- Delete and bulk delete endpoints are implemented as described.
- Deleting a snapshot spawns a task that also deletes pulp objects.
- A user should not be able to delete the last snapshot in a repository.
- Errors should be returned in a list, similar to the repository bulk delete endpoint