pensar uninstall

Overview

The pensar uninstall command removes Pensar Apex from your system. It detects how Apex was installed (npm, Homebrew, or standalone binary) and performs the appropriate removal. Your sessions, memories, and skills are preserved by default.

Usage

$pensar uninstall # Interactive uninstall with confirmation
$pensar uninstall --force # Skip confirmation prompt

Options

FlagDescription
--force, -fSkip the confirmation prompt
-h, --helpShow help message

What Gets Removed

Binary/Package

Depending on your installation method:

MethodRemoval Command
npmnpm uninstall -g @pensar/apex
Homebrewbrew uninstall pensarai/tap/apex
BinaryRemoves the binary file directly

Data Directory (~/.pensar/)

Configuration files, auth tokens, and cached data are removed from ~/.pensar/.

What Gets Preserved

The following directories under ~/.pensar/ are preserved during uninstall:

DirectoryContents
sessions/Pentest and operator session data
memories/Agent memory and context
skills/Custom operator skills

To remove all data including preserved directories:

$rm -rf ~/.pensar

Example

Pensar Uninstall
Install method: npm
Binary removal: npm uninstall -g @pensar/apex
Data directory: /home/user/.pensar
Preserved data: sessions, memories, skills
Proceed with uninstall? (y/N): y
Cleaning data directory...
Removed config.json
Preserved sessions/
Preserved memories/
Preserved skills/
Removing pensar...
Removed npm package @pensar/apex
✓ Pensar has been uninstalled.
Preserved data remains at /home/user/.pensar/ (sessions, memories, skills)
To remove all data: rm -rf ~/.pensar