## Removing passwords and icons

Neither libgnome-keyring or libsecret allow deletion of locked items. libsecret tries to make it easier to delete all unlocked items matching certain attributes.

Replacements for related libgnome-keyring functions and types are described below:

Table 5.

libgnome-keyring | libsecret
--- | ---
`gnome_keyring_delete_password()` | `secret_password_remove()`, although we now try to delete all unlocked matching items
`gnome_keyring_delete_password_sync()` | `secret_password_remove_sync()`, although we now try to delete all unlocked matching items
`gnome_keyring_item_delete()` | `secret_item_delete()`
`gnome_keyring_item_delete_sync()` | `secret_item_delete_sync()`