Hello, I explain:
Suppose we have this string:

Hi this is a test (which is nonsense), just to show you an example (lol).
As would be to erase what's in parentheses and I stayed like this:

Hi this is a test, just to show you an example.
Thanks