flexpass.delete_password

flexpass.delete_password(name: str, warn_if_notfound=False) bool

Delete the given password in all writable backends where the password was set.

Return True if the password was deleted from at least one writable backend, False if the password was not found in any writable backend.

Parameters:
  • name (str) – Name of the password.

  • warn_if_notfound (bool, optional) – If True, emit a warning if no password with the given name is found (defaults to False).

Raises:

BackendNotAvailable – No writable backend was available.

Returns:

True if the password was deleted from at least one writable backend, False if the password was not found in any writable backend.

Return type:

bool