# Delete Role

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

<MethodEndpoint
  method={"delete"}
  path={"/api/v1/organization/{organization_id}/roles/{role_id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Deletes a role from the specified organization.

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

<ParamsDetails
  parameters={[{"description":"The ID of the role","in":"path","name":"role_id","required":true,"schema":{"description":"The ID of the role","format":"uuid","title":"Role Id","type":"string"}},{"description":"The ID of the organization","in":"path","name":"organization_id","required":true,"schema":{"description":"The ID of the organization","format":"uuid","title":"Organization Id","type":"string"}}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"204":{"description":"The role that was deleted from the specified organization."},"404":{"description":"Role not found"},"409":{"description":"Cannot delete role. Role is still assigned to <some_number> user(s)."},"422":{"content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"}}},"description":"Validation Error"}}}
>
  
</StatusCodes>
