save context on delete