Delete Pipeline Document
client.Pipelines.Documents.Delete(ctx, documentID, body) error
DELETE/api/v1/pipelines/{pipeline_id}/documents/{document_id}
Delete a document from a pipeline. Initiates an async job that will:
- Delete vectors from the vector store
- Delete the document from MongoDB after vectors are successfully deleted
Delete Pipeline Document
package main
import (
"context"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
err := client.Pipelines.Documents.Delete(
context.TODO(),
"document_id",
llamacloudprod.PipelineDocumentDeleteParams{
PipelineID: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
},
)
if err != nil {
panic(err.Error())
}
}