> All you can do is remove yourself from her mailing list
> remove 这事做什么词性 充当什么成分
You can omit "to" only if it follows "all [or what] ... to do", e.g.,
All you can do is wait.
All there is to do is wait.
What needs to be done is ask for more money.