Revised the delete