modified delete operation

modified delete operation