Delete an Item
DELETE
/vaults/{vaultUuid}/items/{itemUuid}
const url = 'http://1password.local/vaults/example/items/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://1password.local/vaults/example/items/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” vaultUuid
required
string
The UUID of the Vault the item is in
itemUuid
required
string
The UUID of the Item to update
Responses
Section titled “ Responses ”Successfully deleted an item
Invalid or missing token
Media type application/json
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Example
{ "message": "Invalid token signature", "status": 401}Unauthorized access
Media type application/json
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Example
{ "message": "vault {vaultUuid} is not in scope", "status": 403}Item not found
Media type application/json
object
message
A message detailing the error
string
status
HTTP Status Code
integer
Examples
Example vaultNotFound
Vault not found
{ "message": "vault {vaultUuid} not found", "status": 404}