> For the complete documentation index, see [llms.txt](https://olee-tech.gitbook.io/django/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://olee-tech.gitbook.io/django/django-orm/basic-database-operation/exclude.md).

# - exclude():

\- **exclude()**: The .exclude() method allows you to exclude records that match certain conditions.

```python
from myapp.models import BlogPost
nontech_post= BlogPost.objects.exclude(category='Tech')
```
