detach example