Corrected the delete operations