---
title: '|cut'
description: removes all instances of `string_to_cut` from the value.
date: '2026-08-02'
categories:
  - Filter
  - String
canonical: https://www.djangotemplatetagsandfilters.com/filters/cut/
doc_link: https://docs.djangoproject.com/en/6.0/ref/templates/builtins/#cut
---

# |cut

removes all instances of `string_to_cut` from the value.

## Documentation

Removes all instances of the argument string from the value.

### Variable

```django
sentence = 'Let’s eat, grandpa!'
```

### Template

```django
{{ sentence|cut:',' }
```

### Result

```django
Let’s eat grandpa!
```

## Commentary

It is hard to think of a good use case for this.
