Delete contexts code