---
title: "Clear the dotAuth configuration for a site"
method: DELETE
path: "/api/v1/dotauth/sites/{hostId}"
tags: ["dotAuth"]
---

# Clear the dotAuth configuration for a site

`DELETE /api/v1/dotauth/sites/{hostId}`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v1/dotauth/sites/{hostId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v1/dotauth/sites/:hostId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes both OAuth and SAML secret rows for the given hostId. On SYSTEM_HOST this removes the global default; non-system hosts fall back to inheriting from SYSTEM_HOST afterward.

## Path parameters

- `hostId` string, required

## Response `204`

Configuration cleared successfully

## Other responses

- `401`: Authentication required
- `403`: User does not have permission to edit this site
- `404`: Site not found
- `500`: Internal server error

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/dotauth/sites/:hostId/delete.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
