Charly's Bakery did that on Twitter after South African media said the bakery posted photos of cookies decorated with images of Pistorius and messages such as "And the Oscar goes to ... jail," and one of a toilet door and a sign reading "Caution using toilet please don't shoot!"
Another cookie had an image of track athlete Pistorius in front of the logo of his former sponsor, Nike, and the words "Just do it. He did it," according to a picture published by South African newspaper The Citizen on its website.
Pistorius fired shots through a toilet door at his house that killed his girlfriend, Reeva Steenkamp, and will stand trial on a charge of murder. He says he killed Steenkamp by mistake and thought he was acting in self-defence fearing she was a dangerous intruder.
His trial starts Monday, and a judge ruled Tuesday that some parts of the court case could be broadcast live on TV, developments that dominated news headlines in South Africa.
The Citizen and other South African media published the photo of what they said were the Charly's Bakery cookies and said the bakery initially posted the photo on social media accompanied by the message: "Not sure if these are in good taste, but they sure taste good."
The images were reportedly deleted from the Charly's Bakery page, which then tweeted: "We messed up completely & we own our mistake. We apologize sincerely."
The bakery added on Twitter: "We seriously got it wrong with the ... cookies & we are hanging our collective heads in shame."
It also apologized to Steenkamp's family.