finishes the delete functionality on the dcr