How do I query for the South Africa mainland, and exclude the outlying islands?

Using overpass turbo I am trying to query for the South Africa mainland. I don’t want any of the outlying islands. I query for all of Africa, and then I try to exclude the outlying islands with a boundary box. It still returns the outlying islands, and I get no error message. Do I have the syntax wrong ?