# RAG.DROP

> Delete a RAG pipeline with all of its chunks and embeddings.

URL: https://docs.hotkv.com/commands/rag-drop/

```
RAG.DROP pipeline
```

- Group: RAG
- Complexity: O(N) where N is the number of chunks
- HotKV Cloud: Performance and Scale plans
- On-Premise: requires the rag-pipeline license feature

A RAG pipeline splits your documents into chunks, keeps each chunk with the embedding you computed for it, and answers searches that combine keyword (BM25) relevance with vector similarity, all inside HotKV. `RAG.DROP` deletes a pipeline, its chunks and their embeddings.

## Return value

| Case | RESP2 | RESP3 |
| --- | --- | --- |
| Pipeline deleted | Simple string `OK` | Same |

Errors:

- `ERR pipeline not found` if the pipeline does not exist.
- `ERR wrong number of arguments for 'rag.drop' command` if the argument count is wrong.
- `NOLICENSE rag-pipeline requires a HotKV license. Contact sales@hotkv.com` if your license does not include the `rag-pipeline` feature.

## Examples

```
127.0.0.1:6379> RAG.DROP faq
OK
127.0.0.1:6379> RAG.DROP faq
(error) ERR pipeline not found
```

## Compatibility

HotKV-only command. Redis and Valkey have no equivalent.

## See also

[RAG.CREATE](https://docs.hotkv.com/commands/rag-create/index.md), [RAG.INGEST](https://docs.hotkv.com/commands/rag-ingest/index.md), [RAG.SEARCH](https://docs.hotkv.com/commands/rag-search/index.md), [RAG.STATS](https://docs.hotkv.com/commands/rag-stats/index.md), [RAG.LIST](https://docs.hotkv.com/commands/rag-list/index.md), [AI features guide](https://docs.hotkv.com/ai-features/index.md)