delete data when delete the entry