From confluence-tools
This skill MUST be used when the user asks to "delete a Confluence page", "remove a page", "delete a folder", "remove content from wiki", or wants to delete pages or folders from Confluence. ALWAYS use this skill for Confluence content deletion.
npx claudepluginhub ericfisherdev/claude-plugins --plugin confluence-toolsThis skill uses the workspace's default tool permissions.
**IMPORTANT:** Always use this skill's Python script for deleting Confluence pages and folders. This skill auto-detects content type and handles both pages and folders.
Verifies tests pass on completed feature branch, presents options to merge locally, create GitHub PR, keep as-is or discard; executes choice and cleans up worktree.
Guides root cause investigation for bugs, test failures, unexpected behavior, performance issues, and build failures before proposing fixes.
Writes implementation plans from specs for multi-step tasks, mapping files and breaking into TDD bite-sized steps before coding.
IMPORTANT: Always use this skill's Python script for deleting Confluence pages and folders. This skill auto-detects content type and handles both pages and folders.
Use the Python script at scripts/delete_confluence_page.py:
# Delete a page (auto-detect type)
python scripts/delete_confluence_page.py --id 123456
# Delete a folder explicitly
python scripts/delete_confluence_page.py --id 123456 --type folder
# Delete a page explicitly
python scripts/delete_confluence_page.py --id 123456 --type page
| Option | Description |
|---|---|
--id, -i | Page or folder ID to delete (required) |
--type, -t | Content type: page, folder, auto (default: auto) |
--format, -f | Output: compact (default), text, json |
Children must be deleted first - You cannot delete a page or folder that has children. Delete the children first, or delete recursively starting from the deepest level.
Deletion is permanent - Deleted content goes to the trash but should be treated as permanent. Use with caution.
Auto-detection - By default, the script tries to find the content as a page first, then as a folder. Use --type to skip auto-detection if you know the type.
python scripts/delete_confluence_page.py --id 123456
When deleting a folder hierarchy, delete children first:
# First delete all pages in the folder
python scripts/delete_confluence_page.py --id 123459 # Child page 1
python scripts/delete_confluence_page.py --id 123460 # Child page 2
# Then delete the folder itself
python scripts/delete_confluence_page.py --id 123458 --type folder
# Delete several pages
for id in 123456 123457 123458; do
python scripts/delete_confluence_page.py --id $id
done
compact (default):
DELETED|123456|page|My Page Title
text:
Deleted: My Page Title
ID: 123456
Type: page
json:
{"id": "123456", "title": "My Page Title", "type": "page", "deleted": true}
| Error | Cause | Solution |
|---|---|---|
| "not found" | ID doesn't exist | Verify the ID is correct |
| "has children" | Content has child pages | Delete children first |
| "permission denied" | No delete permission | Check your permissions |
Requires environment variables:
CONFLUENCE_BASE_URL - e.g., https://yoursite.atlassian.netCONFLUENCE_EMAIL - Your Atlassian account emailCONFLUENCE_API_TOKEN - API token from Atlassian account settings