--- title: remove --- Removes every occurrence of the specified substring from a string. ```liquid {% raw %} {{ "I strained to see the train through the rain" | remove: "rain" }} {% endraw %} ``` ```text {{ "I strained to see the train through the rain" | remove: "rain" }} ```