gimp - how to round corners of shapes
Try combination of Select -> Shrink
and then Select -> Grow
with same offset value. This should result in selection with rounded corners.
Doing a Select -> Invert
afterwards will give you what you want to delete ...