gorm-delete
CommunityPrecise GORM deletes: single, batch, soft.
Authorliurida
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill covers deletion of records in GORM, including single-record deletions, deletions by primary key, batch deletions, soft deletes, and permanent deletes, with support for delete hooks.
Core Features & Use Cases
- Delete a single record by primary key or by providing the model instance.
- Batch delete with conditions using Where.
- Soft delete support with DeletedAt fields and Unscoped for hard deletes.
- Delete hooks for BeforeDelete and AfterDelete to enforce business rules.
- Find and manage soft-deleted records to restore or permanently remove when needed.
Quick Start
Set up a model, connect to the database, and run Delete on a specific primary key or filtered query to observe the behavior.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: gorm-delete Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-delete Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.