Skip to main content
DELETE
/
x
/
communities
/
{id}
Delete community
curl --request DELETE \
  --url https://xquik.com/api/v1/x/communities/{id} \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "account": "<string>",
  "community_name": "<string>"
}
'
import requests

url = "https://xquik.com/api/v1/x/communities/{id}"

payload = {
"account": "<string>",
"community_name": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "<content-type>"
}

response = requests.delete(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': '<content-type>'},
body: JSON.stringify({account: '<string>', community_name: '<string>'})
};

fetch('https://xquik.com/api/v1/x/communities/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://xquik.com/api/v1/x/communities/{id}"

payload := strings.NewReader("{\n \"account\": \"<string>\",\n \"community_name\": \"<string>\"\n}")

req, _ := http.NewRequest("DELETE", url, payload)

req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "<content-type>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
10 credits per call · All plans from $0.00012/credit
curl -X DELETE https://xquik.com/api/v1/x/communities/1893726451023847424 \
  -H "x-api-key: xq_YOUR_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "account": "myxhandle",
    "community_name": "Crypto Traders Hub"
  }' | jq
const response = await fetch(
  "https://xquik.com/api/v1/x/communities/1893726451023847424",
  {
    method: "DELETE",
    headers: {
      "x-api-key": "xq_YOUR_KEY_HERE",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      account: "myxhandle",
      community_name: "Crypto Traders Hub",
    }),
  }
);
const data = await response.json();
import requests

response = requests.delete(
    "https://xquik.com/api/v1/x/communities/1893726451023847424",
    headers={"x-api-key": "xq_YOUR_KEY_HERE"},
    json={
        "account": "myxhandle",
        "community_name": "Crypto Traders Hub",
    },
)
data = response.json()
package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "net/http"
)

func main() {
    body, _ := json.Marshal(map[string]interface{}{
        "account":        "myxhandle",
        "community_name": "Crypto Traders Hub",
    })

    req, err := http.NewRequest("DELETE", "https://xquik.com/api/v1/x/communities/1893726451023847424", bytes.NewReader(body))
    if err != nil {
        panic(err)
    }
    req.Header.Set("x-api-key", "xq_YOUR_KEY_HERE")
    req.Header.Set("Content-Type", "application/json")

    resp, err := http.DefaultClient.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    var data map[string]interface{}
    if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
        panic(err)
    }
    fmt.Println(data)
}

Headers

x-api-key
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Content-Type
string
required
Must be application/json.

Path parameters

id
string
required
The ID of the community to delete.

Body

account
string
required
The connected X account that owns the community. Must be a username you have connected to your Xquik account.
community_name
string
required
The name of the community. Required as a confirmation safeguard to prevent accidental deletion.

Response

success
boolean
Always true on success.
{
  "success": true
}
This action is permanent. The community and all its members will be removed. This cannot be undone.
Related endpoints: Create Community to create a new community, Join Community to join an existing community, Leave Community to leave a community.
Last modified on May 9, 2026