delete-batch

Community

Safely bulk-delete transactions.

Authorclenisa
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Performs controlled bulk deletion of transactions from the OptimalOS transactions table to remove bad imports, duplicate batches, or test data while preserving provenance through auditing and scoped filters.

Core Features & Use Cases

  • Scoped filtering: Support for batch-id, user-id, date-range, and bank/source to precisely target records.
  • Safe execution: Counts affected rows, supports dry-run previews, requires explicit confirmation, and deletes in controlled batches.
  • Auditability: Inserts audit records into cli_task_logs and optionally marks upload_batches as deleted to maintain provenance.
  • Use case: Remove an erroneous CSV import by deleting all transactions associated with its upload batch and marking the batch as deleted.

Quick Start

Use the delete-batch command to preview deletions for batch 42 with a dry run and then confirm to execute the removal.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: delete-batch
Download link: https://github.com/clenisa/optimal-cli/archive/main.zip#delete-batch

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.