Skip to main content
DELETE
/
v4
/
knowledge-bases
/
{knowledge_base_id}
/
artifacts
/
{artifact_id}
/
chunks
/
{chunk_id}
Python
import os
from scale_gp import SGPClient

client = SGPClient(
    api_key=os.environ.get("SGP_API_KEY"),  # This is the default and can be omitted
)
chunk = client.knowledge_bases.artifacts.chunks.delete(
    chunk_id="chunk_id",
    knowledge_base_id="knowledge_base_id",
    artifact_id="artifact_id",
)
print(chunk.artifact_id)
{
  "deleted": true,
  "artifact_id": "<string>",
  "chunk_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

knowledge_base_id
string
required
artifact_id
string
required
chunk_id
string
required

Response

Successful Response

deleted
boolean
required

Whether or not the artifact was successfully deleted

artifact_id
string
required

The ID of the artifact from which the chunk was deleted

chunk_id
string
required

The ID of the chunk that was deleted