Skip to main content

POST /api/deletePassword/

Soft deletes a password entry by setting its status to 0. The password is not permanently removed from the database, but will no longer appear in the list of active passwords.

Path Parameters

integer
required
The unique identifier of the password entry to delete

Request

Response

string
Success or error message
integer
HTTP status code

Response Codes

  • 200 - Success - Password deleted successfully
  • 404 - Password not found

Example Response (200 OK)

Example Response (404 Not Found)

Notes

  • This is a soft delete operation. The password entry remains in the database with status = 0
  • Deleted passwords will not appear in the /api/listPassword endpoint results
  • The password can still be retrieved individually using /api/getPassword/{id}
  • To permanently delete a password, you would need to remove the record from the database directly