Using the Find and Replace function:
Find: \s*\[[^]]*]
Replace with:
Regular expression:
\s* whitespace (\n, \r, \t, \f, and " ") (0 or more times)
\[ '['
[^]]* any character except: ']' (0 or more times)
] ']'