Skip to main content
POST
/
v4
/
knowledge-bases
/
{knowledge_base_id}
/
artifacts
/
batch-delete
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
)
response = client.knowledge_bases.artifacts.batch_delete(
    knowledge_base_id="knowledge_base_id",
    artifact_ids=["string"],
)
print(response.artifact_ids)
{
  "artifact_ids": [
    "<string>"
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

knowledge_base_id
string
required

Body

application/json
artifact_ids
string[]
required

List of artifact ids to delete

Required array length: 1 - 100 elements

Response

Successful Response

artifact_ids
string[]
required

List of artifact ids that were deleted