---
title: "Delete Developer Secret"
method: DELETE
path: "/secrets/{secret_id}"
tags: ["secrets"]
---

# Delete Developer Secret

`DELETE /secrets/{secret_id}`

Delete a secret.

Args:
    secret_id: ID of the secret to delete
    x_developer_id: ID of the developer who owns the secret

Returns:
    The deleted secret

Raises:
    HTTPException: If the secret doesn't exist

## Path parameters

- `secret_id` string, uuid, required

## Response `202`

Successful Response

- ResourceDeletedResponse
  - `id` string, uuid, required
  - `deleted_at` string, date-time, required
  - `jobs` string[]

## Other responses

- `422` — Validation Error

## Changes

- **2025-05-12** `3b58badc86fa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/julep-ai/apis/julep-agents-api/changes/secrets/:secret_id/delete.md)

---

[API](https://skmtc.dev/julep-ai/apis/julep-agents-api.md) · [All operations](https://skmtc.dev/julep-ai/apis/julep-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/julep-ai/julep-agents-api/revisions/21c8182519ef/schema)
