-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathreset_system.ps1
More file actions
63 lines (55 loc) · 2.21 KB
/
Copy pathreset_system.ps1
File metadata and controls
63 lines (55 loc) · 2.21 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
52
53
54
55
56
57
58
59
60
61
62
63
# A-MEM System Reset Script
# Deletes all stored data (ChromaDB, Graph, Lock-Files)
#
# ⚠️ IMPORTANT: After reset, the MCP Server must be restarted!
# The graph is loaded on server start and remains in memory.
# Only a server restart ensures a truly empty graph.
Write-Host "🔄 Resetting A-MEM system completely..." -ForegroundColor Yellow
Write-Host ""
# Delete ChromaDB
if (Test-Path "data\chroma") {
Remove-Item -Recurse -Force "data\chroma"
Write-Host " ✅ ChromaDB deleted" -ForegroundColor Green
} else {
Write-Host " ⚠️ ChromaDB does not exist" -ForegroundColor Gray
}
# Delete Graph
if (Test-Path "data\graph\knowledge_graph.json") {
Remove-Item -Force "data\graph\knowledge_graph.json"
Write-Host " ✅ Graph deleted" -ForegroundColor Green
} else {
Write-Host " ⚠️ Graph does not exist" -ForegroundColor Gray
}
# Delete Lock-File
if (Test-Path "data\graph\graph.lock") {
Remove-Item -Force "data\graph\graph.lock"
Write-Host " ✅ Lock-File deleted" -ForegroundColor Green
} else {
Write-Host " ⚠️ Lock-File does not exist" -ForegroundColor Gray
}
Write-Host ""
Write-Host "✅ Files deleted" -ForegroundColor Green
Write-Host ""
Write-Host "⚠️ IMPORTANT NOTE:" -ForegroundColor Yellow
Write-Host " The MCP Server must be RESTARTED!" -ForegroundColor Yellow
Write-Host " The graph is loaded on server start and remains in memory." -ForegroundColor Yellow
Write-Host " Only a server restart ensures a truly empty graph." -ForegroundColor Yellow
Write-Host ""
Write-Host " In Cursor: Reload MCP Server (Cursor Settings → MCP → Restart)" -ForegroundColor Cyan
Write-Host ""
Write-Host "📊 Verification:" -ForegroundColor Cyan
if (Test-Path "data\chroma") {
Write-Host " ❌ ChromaDB still exists" -ForegroundColor Red
} else {
Write-Host " ✅ ChromaDB deleted" -ForegroundColor Green
}
if (Test-Path "data\graph\knowledge_graph.json") {
Write-Host " ❌ Graph still exists" -ForegroundColor Red
} else {
Write-Host " ✅ Graph deleted" -ForegroundColor Green
}
if (Test-Path "data\graph\graph.lock") {
Write-Host " ❌ Lock-File still exists" -ForegroundColor Red
} else {
Write-Host " ✅ Lock-File deleted" -ForegroundColor Green
}