It’s called an imprecatory prayer.
bttt
There's my word for the day.
Right you are. Did alittle research and found it in Psalm 35.
“Righteous imprecatory prayer is the last hope of the patient, innocent, faithful saint.” from The Expository Files. Not the adjectives that come to mind when I think of Beck.