Talk with Archie
API reference › Topics
Skills › Topics

Soft-Delete a Topic

POST/api/v1/skills/topic.delete/invoke
Soft-deletes a Topic and unlinks its conversations, so the topic drops off every list. It needs topic_id and returns deleted as true. Only an operator can reverse a deletion, and because the consequence level is critical it needs a person's confirmation before it runs.
Body parameters
topic_idstringRequired
Topic permakey (preferred) or UUID
Returns

Skill executed successfully

skillstringRequired
Example topic_delete
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.topic_idstring · default
The deleted topic's permakey (the public id).
output.permakeystring · default
The 7-char public topic id — THE id to show users and reuse in later topic_* calls (UUIDs are internal).
output.deletedboolean · default false
True when the topic was soft-deleted
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALIDAuthentication required
403PERMISSION.CAPABILITY_DENIEDInsufficient permissions
404SKILL.NOT_FOUNDSkill not found
422VALIDATION.INVALID_FORMATValidation error
429RATE_LIMIT.USERRate limit exceeded
5XXINTERNAL.UNKNOWNInternal server error
curl https://uk.heyarchie.com/api/v1/skills/topic.delete/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "topic_id": "string"
     }'
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "topic.delete",
    topic_id="string",
)
print(result)
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("topic.delete", {
  "topic_id": "string"
});
console.log(result);
Response
{
  "skill": "topic_delete",
  "output": {
    "deleted": true,
    "permakey": "K7M2QX9",
    "topic_id": "K7M2QX9"
  },
  "correlation_id": "<string>"
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}

Every response also carries X-Request-ID. Quote it if you write to us about a call.