I would like to delete a sequence ending with plenty parenthesis and rather than count the exact number of parenthesis to do a d[count]f), I want to delete up to the before last character in a line.

I tried dt$ but with no success.

EDIT: Eventually, can we exclude more characters ?