---
updatedAt: 2025-05-20T21:58:25.000Z
agentTools:
  projectIndex: https://slemma.readme.io/llms.txt
---

# Delete an object

Permanently deletes an object. It cannot be undone.

The following are the examples of HTTP status codes including errors that API can generate

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Response codes
      </th>

      <th style={{ textAlign: "left" }}>
        Response content
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        200 OK
      </td>

      <td style={{ textAlign: "left" }}>

      </td>

      <td style={{ textAlign: "left" }}>
        An object has been deleted successfully.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        403 Forbidden
      </td>

      <td style={{ textAlign: "left" }}>
        Access denied
      </td>

      <td style={{ textAlign: "left" }}>
        Access to the object is denied.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        404 Not Found
      </td>

      <td style={{ textAlign: "left" }}>
        Object not found
      </td>

      <td style={{ textAlign: "left" }}>
        An object with the specified key wasn't found.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api-settings",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://slemma.com/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "TeamID",
        "in": "header",
        "x-default": ""
      },
      "sec1": {
        "type": "apiKey",
        "name": "SIG",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": []
    }
  ],
  "paths": {
    "/objects/{key}": {
      "delete": {
        "summary": "Delete an object",
        "description": "Permanently deletes an object. It cannot be undone.",
        "operationId": "delete-an-object",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "description": "The identifier of the object to be deleted",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Access denied"
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "Object not found"
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "cURL -i -X DELETE \n   -H teamid:131219\n   -H sig:a214bb15a05b1cde9a1e31d19d0660b18fb37394\n   -H Content-Type:application/json\nhttps://slemma.com/api/v1/objects/12"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```