---
id: core-tokens-destroy
title: "core_tokens_destroy"
description: "Token Viewset"
sidebar_label: "core_tokens_destroy"
hide_title: true
hide_table_of_contents: true
api: eJytVMFu2zAM/RVDpw0IoiDtYchpwxYMAdqiWLteiiCQZTZWo0iqJGcLDP/7SNluHCTpaSdTJkU+Pj6xZtaBF1FZsyjYjEnrYRXtBkxYFRCit3s2YmhJrxxFYcwjubMnBX8CRPQ64cUWIvjAZs81UxTjRCzRZdCBJ1WAiepFgcd/QZawFWxWs7h35MUqyqxZM2Ie3irlAYFEX0GzHLEo1pQ14WJ4DiArr+I+VRJVLCnxBk9LivYQnDUBAmWfTq7pc4z9zmZ9UJbbYk9VrycTCpTWRMxGpnBOK5lY4a+BLtansG3+CjKesPMktCrS1WzuvaWOnSeSo2pxGWtWSIUuVkD+MEgpvBfEt4qwDWcYQrDSFnDeI4pCUVmh74f10BNV1HAErUXW0LVj9C0fV/+Rj59gwCuZfbtfXCCkgCiUPiuIy90epPLcJ1geOu2KftAm/kLNlpZEX4BG+SYlo2pnjJPaePsKeH0Qb8NJvuB3vdQrrylcOMV3V5w1A4E+ED1tfwOZvndSxuj6t0DnHIQHn2Ap82JTZNfL4fqIUeW2g+lkej3+Mp6e8H0rNshR1t9qp5YFtXUaxmyUxipkGivOj3hnJWhtv67te6WxssQ+zhwZSAPoHvLt4hFTtG1TC2HG+VrFssrH0m75IAU/WLm2OcdSht8svs/vHuapTWdD3AozSE6sZy3r2YXdM1DlyRrqmI3wN3KnsRy1kKDW3WC7NYKhqQgas6PNRAoqERZF1nUuAvz2umno91sFnpYOmjvhlchpNKiAQgWyUUUvQgf4AO6nX51iP2eXwPZbwFDfO6ErOqG5gf3xEm2WGF2CKNAmFG3ANynBxcHVk2dLAn1X/Y/5zfxxjuE0qYE0OymOeoMKnEWGFKWINAikqQea2CWMTfMPAeUwqg==
sidebar_class_name: "delete api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"core_tokens_destroy"}
>
</Heading>

<MethodEndpoint
  method={"delete"}
  path={"/core/tokens/{identifier}/"}
>
  
</MethodEndpoint>



Token Viewset

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<details
  style={{"marginBottom":"1rem"}}
  className={"openapi-markdown__details"}
  data-collapsed={false}
  open={true}
>
  <summary
    style={{}}
  >
    <h3
      className={"openapi-markdown__details-summary-header-params"}
    >
      Path Parameters
    </h3>
  </summary><div>
    <ul>
      <ParamsItem
        className={"paramsItem"}
        param={{"in":"path","name":"identifier","schema":{"type":"string"},"required":true}}
      >
        
      </ParamsItem>
    </ul>
  </div>
</details><div>
  <div>
    <ApiTabs
      label={undefined}
      id={undefined}
    >
      <TabItem
        label={"204"}
        value={"204"}
      >
        <div>
          
          
          No response body
          
          
        </div><div>
          
        </div>
      </TabItem><TabItem
        label={"400"}
        value={"400"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"non_field_errors"}
                        required={false}
                        schemaName={"string[]"}
                        qualifierMessage={undefined}
                        schema={{"type":"array","items":{"type":"string"}}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        name={"property name*"}
                        required={false}
                        schemaName={"any"}
                        qualifierMessage={undefined}
                        schema={{"type":"object","description":"Validation Error","properties":{"non_field_errors":{"type":"array","items":{"type":"string"}},"code":{"type":"string"}},"additionalProperties":{},"title":"ValidationError"}}
                        collapsible={false}
                        discriminator={false}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"non_field_errors\": [\n    \"string\"\n  ],\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem><TabItem
        label={"403"}
        value={"403"}
      >
        <div>
          
          
          
          
          
        </div><div>
          <MimeTabs
            className={"openapi-tabs__mime"}
            schemaType={"response"}
          >
            <TabItem
              label={"application/json"}
              value={"application/json"}
            >
              <SchemaTabs
                className={"openapi-tabs__schema"}
              >
                <TabItem
                  label={"Schema"}
                  value={"Schema"}
                >
                  <details
                    style={{}}
                    className={"openapi-markdown__details response"}
                    data-collapsed={false}
                    open={true}
                  >
                    <summary
                      style={{}}
                      className={"openapi-markdown__details-summary-response"}
                    >
                      <strong>
                        Schema
                      </strong>
                    </summary><div
                      style={{"textAlign":"left","marginLeft":"1rem"}}
                    >
                      
                    </div><ul
                      style={{"marginLeft":"1rem"}}
                    >
                      <SchemaItem
                        collapsible={false}
                        name={"detail"}
                        required={true}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem><SchemaItem
                        collapsible={false}
                        name={"code"}
                        required={false}
                        schemaName={"string"}
                        qualifierMessage={undefined}
                        schema={{"type":"string"}}
                      >
                        
                      </SchemaItem>
                    </ul>
                  </details>
                </TabItem><TabItem
                  label={"Example (from schema)"}
                  value={"Example (from schema)"}
                >
                  <ResponseSamples
                    responseExample={"{\n  \"detail\": \"string\",\n  \"code\": \"string\"\n}"}
                    language={"json"}
                  >
                    
                  </ResponseSamples>
                </TabItem>
              </SchemaTabs>
            </TabItem>
          </MimeTabs>
        </div>
      </TabItem>
    </ApiTabs>
  </div>
</div>
      