delete detach working