DELETE /delete-link/:id
Soft deletes a viewer link, immediately revoking access for anyone attempting to use the link. The link record is retained in the database with a deletion timestamp.Authentication
Requires JWT authentication token in the Authorization header.Path Parameters
The unique identifier of the viewer link to delete
Response
Confirmation message indicating successful deletion
Example Request
Example Response
Status Codes
200 OK- Viewer link successfully deleted400 Bad Request- Invalid ID format401 Unauthorized- Missing or invalid authentication token404 Not Found- Viewer link with specified ID not found500 Internal Server Error- Failed to delete link in database
Notes
- This is a soft delete operation - the record remains in the database with a
deleted_attimestamp - Once deleted, the viewer link token will no longer provide access to the repository
- Users attempting to access a deleted link will receive a “This link has been deleted” error (HTTP 410 Gone)
- Soft-deleted links are excluded from dashboard queries by default
- The deletion is immediate and cannot be undone through the API