How to edit Sort By options in the Warehouse theme

How can I edit/remove options from the Sort By dropdown menu in the Warehouse theme? I already tried all of the solutions in other posts and nothing seems to work. I guess it has to be specific to the theme.

I also tried removing the Sort By dropdown completely. That didn’t work either.

Based on other posts here, I assumed that this is the part of code in main-collection.liquid that needs changing:

{%- assign collection_sort_by = collection.sort_by | default: collection.default_sort_by -%}

                      {%- for option in collection.sort_options -%}
                        {%- if option.value == collection_sort_by -%}
                          {%- assign collection_sort_by_name = option.name -%}
                          {%- break -%}
                        {%- endif -%}
                      {%- endfor -%}

And if delete it completely, all the options remain the same and here’s what happens:

All attempts to edit or replace it based on other solutions I found here, resulted in all kinds of errors.

Please, Help!