delete bracket pairs