update function delete()