Skip to main content
DELETE
/
v4
/
knowledge-bases
/
{knowledge_base_id}
/
artifacts
/
{artifact_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
)
artifact = client.knowledge_bases.artifacts.delete(
    artifact_id="artifact_id",
    knowledge_base_id="knowledge_base_id",
)
print(artifact.artifact_id)
{
  "deleted": true,
  "artifact_id": "<string>"
}

Authorizations

x-api-key
string
header
required

Path Parameters

knowledge_base_id
string
required
artifact_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 that was deleted