---
title: "Delete a resource."
method: DELETE
path: "/resources/{resourceId}.json"
tags: ["Resources"]
---

# Delete a resource.

`DELETE /resources/{resourceId}.json`

## Request

- Base URL: `https://passbolt.local`
- URL: `https://passbolt.local/resources/{resourceId}.json`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/passbolt/apis/passbolt-api/docs/resources/:resourceId.json/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `resourceId` string, uuid, required

## Response `200`

Operation is successful.

- object
  - `header` Header, required
    - `id` string, uuid, required
    - `status` 'success' | 'error', required
    - `servertime` integer, required
    - `action` string, uuid, required
    - `message` string, required
    - `url` string, uri, required
    - `code` integer, required
  - `body` unknown, required

## Other responses

- `400`: Bad request
- `401`: Authentication required.
- `404`: Not found

---

[API](https://skmtc.dev/passbolt/apis/passbolt-api.md) - [All operations](https://skmtc.dev/passbolt/apis/passbolt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/passbolt/apis/passbolt-api/revisions/8d72215e2274?raw)
