Skip to main content
DELETE
Delete Saved Password
Deletes a saved password. Users can only delete their own passwords.

Endpoint

Authentication

string
required
Bearer token for authentication. User must be logged in.

Path Parameters

integer
required
The unique identifier (primary key) of the saved password to delete.

Request

This endpoint does not require a request body.

Response

Success Response

204 No Content

Error Responses

Authorization

Users can only delete passwords they own. The endpoint automatically filters by the authenticated user, ensuring users cannot delete other users’ passwords. If a user attempts to delete a password that:
  • Does not exist, or
  • Belongs to another user
The endpoint will return a 404 Not Found error.

Example Request

Implementation Details

This endpoint is implemented in views.py:108 using the delete_saved_password view function. It retrieves the password instance filtered by both the primary key and the authenticated user, then deletes it from the database.