Skip to main content
DELETE
/
v1
/
namespace
/
{namespaceId}
/
ingest-jobs
/
{jobId}
TypeScript
import { Agentset } from "agentset";

const agentset = new Agentset({ apiKey: 'agentset_xxx' });
const ns = agentset.namespace('ns_xxx');

await ns.ingestion.delete("job_123");
console.log("Ingest job queued for deletion");
{
  "success": true,
  "data": {
    "id": "<string>",
    "namespaceId": "<string>",
    "tenantId": "<string>",
    "externalId": "<string>",
    "status": "BACKLOG",
    "error": "<string>",
    "payload": {
      "type": "<string>",
      "text": "<string>",
      "fileName": "<string>"
    },
    "config": {
      "chunkSize": 4503599627370512,
      "delimiter": "<string>",
      "metadata": {},
      "languageCode": "af",
      "mode": "fast",
      "disableImageExtraction": true,
      "disableImageCaptions": true,
      "chartUnderstanding": true,
      "keepPageheaderInOutput": true,
      "keepPagefooterInOutput": true,
      "forceOcr": true,
      "disableOcrMath": true,
      "useLlm": true,
      "chunkOverlap": 123,
      "maxChunkSize": 123,
      "chunkingStrategy": "basic",
      "strategy": "auto"
    },
    "createdAt": "<string>",
    "queuedAt": "<string>",
    "preProcessingAt": "<string>",
    "processingAt": "<string>",
    "completedAt": "<string>",
    "failedAt": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Headers

x-tenant-id
string

Optional tenant id to use for the request. If not provided, the namespace will be used directly. Must be alphanumeric and up to 64 characters.

Pattern: ^[A-Za-z0-9]{1,64}$

Path Parameters

namespaceId
string
required

The id of the namespace (prefixed with ns_)

Example:

"ns_123"

jobId
string
required

The id of the job (prefixed with job_)

Example:

"job_123"

Response

The deleted ingest job

success
boolean
required
data
Ingest Job · object
required