Working with delete and update