Couchbase Query service not working on Ubuntu 14.04

On my test server (with only one node), I migrate by removing the package of couchbase 3:
dpkg -r couchbase-server
and I installed the new package :
dpkg -i couchbase-server-community_4.1.1-ubuntu14.04_amd64.deb

I just find this similar question : Can you enable query + index service on an existing 1 node cluster?

Could you share more details on how I could reinit the server with query enabled from the API or conf file ?

In the UI, I’m not able to remove the single node.
To do it in an automatic way, should I use this API : http://developer.couchbase.com/documentation/server/current/rest-api/rest-node-services.html ?