Identity-Based Microsegmentation Guide
LAST UPDATED: October 8, 2021

Uninstall apoctl

To remove the apoctl executable as well as the directory it stores its credentials and profile information in, use the commands that correspond to the operating system of the host.

sudo rm /usr/local/bin/apoctl
sudo rm -rf .apoctl
Start-Process msiexec.exe -ArgumentList '/x apoctl.msi /quiet' -Wait ; `
if($?) {rm 'apoctl.msi'} ; `
if($?) {rm '.apoctl' -r -fo}

Use one of the following commands to remove the MICROSEG_API environment variable from the host.

sed -i ''  '/^export MICROSEG_API/d' ~/.bash_profile
$env:MICROSEG_API="" `