Return error code if undeletable or unactivable