curl --request DELETE \
--url https://api.example.com/api/password-generator/view-all-saved-passwords/{pk}/delete/ \
--header 'Authorization: <authorization>'{
"error": "Password not found."
}
curl --request DELETE \
--url https://api.example.com/api/password-generator/view-all-saved-passwords/{pk}/delete/ \
--header 'Authorization: <authorization>'{
"error": "Password not found."
}
Deletes a saved password. Users can only delete their own passwords.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/edimez14/password_generator/llms.txt
Use this file to discover all available pages before exploring further.
DELETE /api/password-generator/view-all-saved-passwords/{pk}/delete/
{
"message": "Password deleted successfully"
}
{
"error": "Password not found."
}
{
"error": "error message"
}
curl -X DELETE https://api.example.com/api/password-generator/view-all-saved-passwords/1/delete/ \
-H "Authorization: Bearer YOUR_TOKEN"
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.