
swi9q (swi9q) asked a question.
I have sftd daemon installed (scaleft-server-tools-{version})
But when I terminate a server, is there any way how to unenroll or de-register the server?

We use cookies to provide the best website experience and to help understand marketing efforts. We may also share data with ad partners to reach potential customers across the web. To learn more, visit our Privacy Policy. Click here for Your Privacy Choices. You may also opt out of this sharing by signaling your preference via GPC, applicable only to the browser signaling the opt-out.
More information
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Select All

We use cookies to provide the best website experience and to help understand marketing efforts. We may also share data with ad partners to reach potential customers across the web. To learn more, visit our Privacy Policy. Click here for Your Privacy Choices. You may also opt out of this sharing by signaling your preference via GPC, applicable only to the browser signaling the opt-out.
More information
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.
Select All
Hi Marco,
You can unenroll a client form the Advanced Server Access dashboard by using the following command:
sft unenroll
Removes the currently active client from your client inventory in the Advanced Server Access platform.
For more details please check the next article: https://help.okta.com/en/prod/Content/Topics/Adv_Server_Access/docs/client.htm
Thank You,
Alexandru Moraru
Technical Support Engineer
Okta Global Customer Care
This is on a server that only has the sftd installed. (so NO sft application)
How can I unenroll this?
Marco
Hi @alexandru.moraru1.5000675512268237E12 (Okta, Inc.)
We have the same question that Marco has regarding unenrolling a server. Is your recommendation to install the sft client on our servers? Is there a way to do this via the agent instead?
Thank you for your time!
Ryan
I came here looking for the same answer.
We are using script to install and enroll server into ASA. But we are now looking for a way to achieve the reverse thing and automatically unenroll / deregister server from the ASA Project.
I know you can do it manually from the ASA UI. And that is fine if you have manual proces and one or two servers to deregiser.
If you are using deployment pipeline to spinn up the whole environment and register all the servers into the ASA project,
then naturally you need to have a way to deregister those servers when/if they are not needed anymore.
Or even if there would be just an API to make a call.
In the age of devops automation the lack of this feature make managing okta servers very cumbersome.
Aparently there is an API for it. Someone from support has just sent us this:
While there is no out-of-the-box way to automate the process of deleting a server, you can use the below API to delete a server:
{{url}}/v1/teams/{{teamName}}/projects/{{projectName}}/servers/{{server_id}
That is great news. I am searching at https://developer.okta.com/docs/reference/
But do you know where the /teams/ api methods are documented?
The DELETE docs for a server are at: https://developer.okta.com/docs/reference/api/asa/projects/#remove-a-server-from-a-project
You'll need to have a service user created, and an API key, and mint a Bearer token using: https://developer.okta.com/docs/reference/api/asa/service-users/#issue-a-service-user-token
For further details on the auth, see: https://help.okta.com/en/prod/Content/Topics/Adv_Server_Access/docs/service-users.htm?cshid=ext_asa_service_users
Note that a server will remain in the list until removed explicitly, however a server will not be considered a contender for lookup 96 hours after its last contact: https://help.okta.com/en/prod/Content/Topics/Adv_Server_Access/docs/server-name-resolution.htm
You can get the UUID, which you need to unregister, from the server itself with:
$ sftd --debug-device-token | grep 'Server ID: server' | cut -f3 -d:
ab766d33-7877-4f21-cda1-b2a69550b0b6