-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuninstall.ps1
More file actions
51 lines (43 loc) · 1.41 KB
/
Copy pathuninstall.ps1
File metadata and controls
51 lines (43 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#Requires -Version 5.1
<#
.SYNOPSIS
Claude Ads Uninstaller for Windows
.DESCRIPTION
Removes the Claude Ads skill, sub-skills, agents, and reference files
from Claude Code on Windows systems.
#>
$ErrorActionPreference = "Stop"
function Main {
Write-Host "→ Uninstalling Claude Ads..."
$ClaudeDir = Join-Path $env:USERPROFILE ".claude"
# Remove main skill (orchestrator + references)
$MainSkill = Join-Path $ClaudeDir "skills\ads"
if (Test-Path $MainSkill) {
Remove-Item -Path $MainSkill -Recurse -Force
}
# Remove sub-skills
$SubSkills = @(
"ads-audit", "ads-google", "ads-meta", "ads-youtube",
"ads-linkedin", "ads-tiktok", "ads-microsoft", "ads-creative",
"ads-landing", "ads-budget", "ads-plan", "ads-competitor"
)
foreach ($skill in $SubSkills) {
$SkillPath = Join-Path $ClaudeDir "skills\$skill"
if (Test-Path $SkillPath) {
Remove-Item -Path $SkillPath -Recurse -Force
}
}
# Remove agents
$Agents = @(
"audit-google", "audit-meta", "audit-creative",
"audit-tracking", "audit-budget", "audit-compliance"
)
foreach ($agent in $Agents) {
$AgentPath = Join-Path $ClaudeDir "agents\$agent.md"
if (Test-Path $AgentPath) {
Remove-Item -Path $AgentPath -Force
}
}
Write-Host "✓ Claude Ads uninstalled." -ForegroundColor Green
}
Main