--- title: remove description: Liquid filter that removes all occurences of a given substring from a string. --- Removes every occurrence of the specified substring from a string.
Input
```liquid {% raw %} {{ "I strained to see the train through the rain" | remove: "rain" }} {% endraw %} ```Output
```text {{ "I strained to see the train through the rain" | remove: "rain" }} ```