---
title: "Dry run a user deletion."
method: DELETE
path: "/users/{userId}/dry-run.json"
tags: ["Users"]
---

# Dry run a user deletion.

`DELETE /users/{userId}/dry-run.json`

## Request

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

## Path parameters

- `userId` 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`: The dry-run failed.
- `401`: Authentication required.
- `404`: Not found

## Changes

- **2026-11-06** `8d72215e2274`: 2 breaking, 14 info
  - the `body/errors/folders/sole_owner/items/allOf[subschema #2]/children_resources/items/anyOf[#/components/schemas/resourceV5IndexAndView]/allOf[subschema #2]/secrets/items/` response's property type changed from `string` to `object` for status `400`
  - the `body/errors/resources/sole_owner/items/anyOf[#/components/schemas/resourceV5IndexAndView]/allOf[subschema #2]/secrets/items/` response's property type changed from `string` to `object` for status `400`
  - added the optional property `body/errors/folders/sole_owner/items/allOf[subschema #2]/children_resources/items/anyOf[#/components/schemas/resourceV5IndexAndView]/allOf[subschema #2]/offline` to the response with the `400` status
  - added the optional property `body/errors/resources/sole_owner/items/anyOf[#/components/schemas/resourceV5IndexAndView]/allOf[subschema #2]/offline` to the response with the `400` status
  - …12 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/passbolt/apis/passbolt-api/changes/users/:userId/dry-run.json/delete.md)

---

[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)
