Cupertino, Calif. — Apple said Thursday that it is removing games from its online app store that feature the Confederate flag in "offensive or mean-spirited ways."

The move comes days after Apple CEO Tim Cook called on people in a tweet to honor the victims of the Charleston, South Carolina, church shooting by eradicating racism and the symbols that feed it.

Apple said in a statement Thursday that apps are being removed "that use the Confederate flag in offensive or mean-spirited ways, which is in violation of our guidelines." Other apps that depict the flag in educational or historical contexts are not being removed.

Apple Inc., which is based in Cupertino, California, is the latest company to distance itself from the divisive symbol after the shooting suspect, Dylann Storm Roof, appeared in photos holding the flag.

This week, a host of retailers including Wal-Mart, Amazon, Sears, eBay and Etsy said they would remove Confederate flag merchandise from their shelves and websites, while Google blocked digital ads featuring the flag.