Finished the delete functionality.