---
title: "DELETE Ban a link by domain and key"
description: "Transfers ownership of a specified link to the legal user/workspace and bans it."
last_updated: "2026-10-05T05:08:24.494492+00:00"
canonical_url: "https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/api/admin/adminbanlink"
---

<APIEndpoint
  method={"DELETE"}
  path={"/api/admin/links/ban"}
  summary={"Ban a link by domain and key"}
  description={"Transfers ownership of a specified link to the legal user/workspace and bans it."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"domain","in":"query","required":true,"description":"Domain of the link","schema":{"type":"string"}},{"name":"key","in":"query","required":true,"description":"Key of the link","schema":{"type":"string"}}]} />

## Responses

<APIResponse
  statusCode={"200"}
  description={"Link banned successfully"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Link not found"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"DELETE"}
  path={"/api/admin/links/ban"}
  parameters={[{"name":"domain","in":"query","required":true,"description":"Domain of the link","schema":{"type":"string"}},{"name":"key","in":"query","required":true,"description":"Key of the link","schema":{"type":"string"}}]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/934e554a-e6a1-476f-bb2f-23e62d86c3fd/llms.txt) for all pages in this wiki.
