Delete and edit function

delete and edit