Katherine Heigl has taken to Instagram to apologize after she was criticized for posting an array of photographs with her relatives’ headstones.

The 39-year-old, who has since deleted the snaps of herself posing with the graves in Buffalo, New York, said in a video clip: “I noticed on my Instagram page that the post I posted earlier was getting a lot of reaction, and I realized you guys are right. It was not appropriate and it was disrespectful and I’ve taken it down.”

View this post on Instagram

🙏❤️

A post shared by Katherine Heigl (@katherineheigl) on

Insisting she was “trying to make a hard moment lighthearted,” Heigl continued: “It’s kind of a heavy thing to go and visit my loved ones’ graves, and I decided to find some moments of levity and humour and didn’t realize how inappropriate I was being.”

RELATED: Katherine Heigl Makes Her ‘Suits’ Debut in First Season 8 Teaser — Watch!

View this post on Instagram

🙏❤️

A post shared by Katherine Heigl (@katherineheigl) on

She went on, “I deeply apologize and I thank you guys for understanding that sometimes I don’t think things through clearly enough and I am grateful for your input and for giving me a heads up when I’m maybe going too far.

“And thank you for forgiving me. Next time I will be more thoughtful about other people’s feelings and not just my own.”

RELATED: Katherine Heigl Celebrates Son’s First Birthday By Sharing Topless Pregnancy Photo, Details Of His Dramatic Birth

Katherine’s now-deleted graveyard pics included this one
Katherine’s now-deleted graveyard pics included this one — Instagram/Katherine Heigl

The star had been visiting the grave of her late older brother, Jason, who died aged 16 from injuries he suffered in a car accident back in 1986.

She also visited her grandparents Reindhold and Margaretta Engelhardt’s resting places.