db-delete

Delete a document from the database and update its index.

1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/adamrdrew/claude-code-patterns --skill db-delete
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: db-delete
Source: https://github.com/adamrdrew/claude-code-patterns/tree/main/procedural-skills/.claude/skills/db-delete
Command: npx skills add https://github.com/adamrdrew/claude-code-patterns --skill db-delete

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Remove a document from the database and update the index. This Skill orchestrates a careful deletion workflow that ensures the user’s data is handled safely and the index remains accurate.

Core Features & Use Cases

  • Coordinated deletion flow: verify the target, determine the correct document, confirm intent, read for backup, delete the file, and update the index.
  • Guardrails and auditability: prompts for confirmation and a clear summary of what will be deleted.
  • End-to-end maintenance: keeps the database and its index in sync during deletions and can handle invalid targets gracefully.

Quick Start

Provide the topic you want to delete and I will verify, back up, delete the document, and refresh the index.

Frequently Asked Questions about db-delete

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely delete a document from a database and keep the index in sync?▼

To safely delete a document and keep the index in sync, a coordinated workflow verifies the target, backs up the file, removes it, and synchronizes the index to maintain data accuracy.

What happens if I try to delete an invalid document target from the database?▼

When deleting an invalid document target from the database, the workflow handles the error gracefully by validating existence first and prompting for confirmation before attempting file removal.

Can I back up a file before removing it from the database?▼

Yes, you can back up a file before removing it from the database because the deletion workflow reads the document to display a backup summary before executing the Bash file removal commands.

How do task management tools coordinate database document deletion steps?▼

Task management tools coordinate database document deletion by using TaskCreate, TaskUpdate, and TaskList to sequence steps like verifying the target, reading the file, and updating the index.

Do I need Bash commands to remove a document and update its index?▼

Yes, you need Bash commands to remove a document and update its index, as the workflow relies on Bash for file removal with guardrails while using Read to inspect files beforehand.