Convert delete script to rake task.