---
id: oauth-2-refresh-tokens-destroy
title: "oauth2_refresh_tokens_destroy"
description: "RefreshToken Viewset"
sidebar_label: "oauth2_refresh_tokens_destroy"
hide_title: true
hide_table_of_contents: true
api: eJytVMFu2zAM/RVBpw0I4iDtYchpQRcMAdquaLteiiCQLSZWo0iuJGcLDP/7SNlO3CXtZTtZlijxvcdHVtwW4ERQ1swln3ArypCPlw5WDny+DHYDxi8l+ODsng84rjKnCorH6Psm7JGi2JOCXx4CBhXCiS0EcJ5PniuuKLQQIccjgwf4pySufZbDVvBJxcO+iLsmwBocr//OM2WlUa8lsDaC7YSmPwkmqNVemTULufLsx5TQsxYWi7iGmMnBa6kcIMHgSqgXAx7EmsC1fDnueMhKp8I+QqZdenuDfwuKx/cKazx4gjseXdLnLcZby7ogllq5JxaXoxEFZhZhm0BLURRaZVHv5MXTxepUB5u+QBZO1H4SWsl4lc2cs46UdlS+oBpcxprlSoGWS6Bz33tSOCeofirAtr+PdUX1eI1gMyvh/ImQUlFaoe/6+fAkqKDhDbQGWV2f1LDR4+I/6vEdDDiVsend/B1BJASh9BlSH7E9muW5e2BxZNom/YAmbqH5c0vtJEFjH8SWQPtPeNL4LXnbX0mlZJ1QR4DbdV1TOk0XRKGS3UXC655FH0ighmHPqAcueQhF1170n4Jw1FUITJmVjZEtm+P1AafMDYfxaHw5/DIcnyh+IzbUa92tpm7Mq22hgfqMCiuyWFisICnPc9Dafl3bQ6ahsqQ/Vh2ZxxK0M+Fm/ohPNLSJgp8kyVqFvEyHmd0mvSeS4yrVNk0wlUmu51ez24dZpFlYH7bC9B5vdGet7qzRnb0z13oOfW/EtVIH+B2SQmN+4hSxV22tD7OFHNWvNm5M4vwjW+WIlGKrKhUefjpd17SNs87RJMLlTjglUqoWmkIqT2u01kpoDx/g/nTf2vgz+9fpeZZrN1cMqRcfJPMP+Ab2zXyvFxiVg5BoPYLeHEyzDIrQu3IyAMjoh/75NruePc4wnKTsWby19KBbUIKziFDXGBHJoLYdwFgKwljXfwCi72uw
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={"oauth2_refresh_tokens_destroy"}
>
</Heading>

<MethodEndpoint
  method={"delete"}
  path={"/oauth2/refresh_tokens/{id}/"}
>
  
</MethodEndpoint>



RefreshToken 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":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this OAuth2 Refresh Token.","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>
      