---
updatedAt: 2026-10-06T17:40:47.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /delete-item

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Account Settings",
    "version": "3.0"
  },
  "paths": {
    "/delete-item": {
      "post": {
        "operationId": "deleteItem",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/deleteItem"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/deleteItemResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "General"
        ],
        "x-docs-category": "Account Settings",
        "x-docs-group": "General",
        "x-generate-protobuf": "true"
      }
    }
  },
  "tags": [
    {
      "name": "General"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "deleteItemResponse": {
        "description": "deleteItemResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/DeleteItemOutput"
            }
          }
        }
      },
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      }
    },
    "schemas": {
      "DeleteItemOutput": {
        "properties": {
          "deletion_date": {
            "format": "date-time",
            "type": "string",
            "x-go-name": "DeletionDate"
          },
          "item_id": {
            "format": "int64",
            "type": "integer",
            "x-go-name": "ItemID"
          },
          "item_name": {
            "type": "string",
            "x-go-name": "ItemName"
          },
          "version_deleted": {
            "format": "int32",
            "type": "integer",
            "x-go-name": "VersionDeleted"
          }
        },
        "title": "DeleteItemOutput defines output of DeleteItem operation.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "deleteItem": {
        "properties": {
          "accessibility": {
            "default": "regular",
            "description": "for personal password manager",
            "type": "string",
            "x-go-name": "ItemAccessibilityString"
          },
          "delete-immediately": {
            "default": false,
            "description": "When delete-in-days=-1, must be set",
            "type": "boolean",
            "x-go-name": "DeleteImmediately"
          },
          "delete-in-days": {
            "default": 7,
            "description": "The number of days to wait before deleting the item (relevant for keys\nonly)",
            "format": "int64",
            "type": "integer",
            "x-go-name": "DeleteInDays"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "name": {
            "description": "Item name",
            "type": "string",
            "x-go-name": "ItemName"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          },
          "version": {
            "default": -1,
            "description": "The specific version you want to delete - 0=last version, -1=entire item\nwith all versions (default)",
            "format": "int32",
            "type": "integer",
            "x-go-name": "Version"
          }
        },
        "required": [
          "name"
        ],
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```