- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-05-2026 03:15 AM
Greetings!
I have a problem about Cortex XDR uninstall password in MacOS. The agent got corrupted while upgrading and from then on it is not upgrading to a new version thats why i was trying to uninstall cortex agent then reinstall new one.
sudo "/Library/Application Support/PaloAltoNetworks/Traps/bin/cortexxdruninstaller_tool"
I used this command and for the uninstall password i tried Password1 as this is the default one but didn't work (Get the error this password is not correct) then i updated uninstall password within the agent configuration and global agent configuration but after all i was unable to delete it.
05-05-2026 06:48 AM
Hello @ThisizAmen ,
Greetings for the day.
When a Cortex XDR agent becomes corrupted during an upgrade, it often loses communication with the management console. Because of this, any password changes you make in the console will not sync to the endpoint, and the agent will continue to require the password it last received or revert to the default. Additionally, if the installation folder is damaged, the uninstaller itself may fail to validate credentials correctly.
We recommend we try the following steps to reset the local configuration and attempt a removal with a default password.
Method 1: Resetting Local Databases via Terminal
This method attempts to clear the local settings so the agent reverts to a default state.
sudo launchctl unload /Library/LaunchDaemons/com.paloaltonetworks.trapsd.plistsudo rm /Library/Application\ Support/PaloAltoNetworks/Traps/db/agentsettings.dbsudo rm /Library/Application\ Support/PaloAltoNetworks/Traps/db/cloudfrontend.dbsudo launchctl load /Library/LaunchDaemons/com.paloaltonetworks.trapsd.plistsudo /Library/Application\ Support/PaloAltoNetworks/Traps/bin/cortexxdruninstaller_tool Password1Method 2: Manual Removal via Recovery Mode
If Method 1 fails (often due to Tamper Protection), we must bypass the agent's protection by using macOS Recovery Mode.
rm -f /Volumes/[DISKNAME]/private/var/db/dslocal/nodes/Default/users/trapspanw.plistsudo /usr/bin/dscl . -delete /Users/trapspanwAfter completing these steps, the agent's core identity will be removed, allowing you to either run the uninstaller or manually delete the /Library/Application Support/PaloAltoNetworks/ folder.
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution".
Thanks & Regards,
S. Subashkar Sekar
05-05-2026 06:52 AM
Thank you for your response @susekar !
Right now i am unable to test this let me try these tomorrow and i will let you know if it's worked or not.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

