How can we unmanage server from solarwinds using API or curl call
This outlines how to do it in powershell, can be adapted for curl.
POWERSHELL SCRIPT TO UNMANAGE NODE VIA REST API/JSON