Many struggle with feelings of guilt. Some even berate themselves, self-criticize, and continue to beat themselves down until they loose all self esteem and start hating themselves due to unskilfull, harmful actions they have done.
But that serves no benefit to anyone:
Ajahn Dhammasiha explains what the Buddha advised us to do if we have committed harm:
Guilt is all about the past. Instead of wallowing in guilt, we focus all our energy on doing better in the future. That's what's really benefical for both ourselves and all other beings!
www.dhammagiri.net