From what I understand, the rake destroy tasks don’t delete data from the database, they only soft-delete it. For a hard-delete you would need to access the rails console.
My rails skills are not great, so I’m hesitant to offer any specific advice, especially for a job of this magnitude , but there are a few pieces of existing advice you could use to research what you’d need to do. Eg: