---
title: "POST Delete a user and all associated data (QA internal)."
description: "This is an internal endpoint for the QA team to delete a user and all their related data. Requires a valid QA_SECRET token in the Authorization header and both userId and email in the request body."
last_updated: "2026-05-06T07:33:58.066227+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/qa-internal/deleteuser"
---

<APIEndpoint
  method={"POST"}
  path={"/api/qa/delete-user"}
  summary={"Delete a user and all associated data (QA internal)."}
  description={"This is an internal endpoint for the QA team to delete a user and all their related data. Requires a valid QA_SECRET token in the Authorization header and both userId and email in the request body."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"Authorization","in":"header","required":true,"description":"Bearer token containing the QA_SECRET.","schema":{"type":"string"}}]} />

## Request Body

The ID and email of the user to delete.

<APIRequestBody
  contentType={"application/json"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"User deleted successfully."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Bad Request, e.g., missing userId or email, or invalid JSON."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized, if the QA_SECRET is missing or invalid."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"500"}
  description={"Internal Server Error, e.g., QA_SECRET not configured or failed to delete user."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/api/qa/delete-user"}
  parameters={[{"name":"Authorization","in":"header","required":true,"description":"Bearer token containing the QA_SECRET.","schema":{"type":"string"}}]}
  requestBody={{"contentType":"application/json","required":true,"description":"The ID and email of the user to delete.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
