---
title: "Delete PII Masking Report"
method: DELETE
path: "/v2/jobs/{job_id}/pii"
tags: ["jobs"]
---

# Delete PII Masking Report

`DELETE /v2/jobs/{job_id}/pii`

Permanently delete a job's PII masking report before its automatic 90-day expiry. Later GET calls return 410 with `deleted_at`; the report is never regenerated. Refused while the job is still running. Requires a key with the `index` permission.

## Path parameters

- `job_id` string, required

## Response `200`

Successful Response

- PiiReportDeleteResponseV2
  - `job_id` string, required
  - `deleted` boolean, required
  - `deleted_at` string, required — When the report was destroyed (RFC3339).
  - `objects_deleted` integer, required

## Other responses

- `401` — Missing or invalid API key
- `403` — `missing_permission`: the key lacks the `index` permission
- `404` — Job not found, or it belongs to another organization
- `409` — `job_running`: the job is still processing. `not_masked`: the job did not run with `mask_pii`. `predates_feature`: the job was indexed before reports were kept
- `410` — `deleted`: already deleted (`deleted_at` is included). `expired`: 90 days passed since the job ran and the report was removed automatically
- `503` — `report_signer_unconfigured`, `registry_unavailable`, `report_store_unavailable`, or `job_status_unavailable`. Retry

---

[API](https://skmtc.dev/runcaptain/apis/api-reference.md) · [All operations](https://skmtc.dev/runcaptain/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runcaptain/api-reference/revisions/fe4649e3f4aa/schema)
