Modify method Delete()