---
title: "DELETE /knowledgeBases/{knowledgeBaseId}"
method: DELETE
path: "/knowledgeBases/{knowledgeBaseId}"
---

# DELETE /knowledgeBases/{knowledgeBaseId}

`DELETE /knowledgeBases/{knowledgeBaseId}`

Deletes the knowledge base.

When you use this API to delete an external knowledge base such as Salesforce or ServiceNow, you must also delete the [Amazon AppIntegrations](https://docs.aws.amazon.com/appintegrations/latest/APIReference/Welcome.html) DataIntegration. This is because you can't reuse the DataIntegration after it's been associated with an external knowledge base. However, you can delete and recreate it. See [DeleteDataIntegration](https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_DeleteDataIntegration.html) and [CreateDataIntegration](https://docs.aws.amazon.com/appintegrations/latest/APIReference/API_CreateDataIntegration.html) in the _Amazon AppIntegrations API Reference_.

## Path parameters

- `knowledgeBaseId` string, required

## Response `204`

Success

- DeleteKnowledgeBaseResponse

## Other responses

- `480` — ConflictException
- `481` — ValidationException
- `482` — UnauthorizedException
- `483` — AccessDeniedException
- `484` — ResourceNotFoundException

---

[API](https://skmtc.net/aws/apis/qconnect.md) · [All operations](https://skmtc.net/aws/apis/qconnect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/qconnect/versions/833f5de92023/schema)
