> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superlink.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke Subdomain

Revoke previously created Subdomain

<CodeGroup>
  ```javascript javascript theme={null}
  // See documentation to set up the client first

  let apiInstance = new superlink.SubdomainApi();
  let parentDomain = "supertest.me";
  let subDomainName = "nora";

  apiInstance.subdomainRevoke(parentDomain, subDomainName, (error, data, response) => {
    if (error) {
      console.error(error);
    }
  });
  ```

  ```go go theme={null}
  // See documentation to set up the client first

  parentDomain := "supertest.me"
  subDomainName := "nora"
  r, err := superlinkClient.SubdomainAPI.SubdomainRevoke(context.Background(), parentDomain, subDomainName).Execute()
  if err != nil {
    fmt.Fprintf(os.Stderr, "Error when calling `SubdomainAPI.SubdomainRevoke``: %v\n", err)
    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
  }

  fmt.Fprintf(os.Stdout, "%s\n", *resp.status)
  fmt.Fprintf(os.Stdout, "%s\n", *resp.reason)
  ```

  ```python python theme={null}
  # See documentation to set up the client first

  api_instance = superlink.SubdomainApi(api_client)
  parent_domain = 'supertest.me'
  subdomain_name = 'nora'

  try:
      api_instance.subdomain_revoke(parent_domain, subdomain_name)
  except Exception as e:
      print("Exception when calling SubdomainApi->subdomain_revoke: %s\n" % e)
  ```
</CodeGroup>
