[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADYWPKE0JQPECT18YB2G9Z":3,"skill-same:01M6ADYWPKE0JQPECT18YB2G9Z":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":52,"repositoryHtmlUrl":53,"repositoryHomepageUrl":17,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6ADYWPKE0JQPECT18YB2G9Z","auto-deletion-workflow","数据自动删除工作流实现","Implements automated data deletion workflows for GDPR Article 17 right to erasure and retention period expiry. Covers cascading deletion across dependent systems, dependency handling for referential integrity, confirmation logging, and audit trail generation. Activate for automated deletion, erasure automation, data purge, retention expiry queries.","为 GDPR 第 17 条删除权和保留期到期实现自动化数据删除工作流。涵盖跨依赖系统的级联删除、引用完整性的依赖处理、确认日志记录和审计追踪生成。适用于自动删除、擦除自动化、数据清除、保留到期相关查询。","mukul975\u002FPrivacy-Data-Protection-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADNKWX1HF4Q5DKEXT5M774",338,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BTGTEHKD89NSZ5CT4Y5AGV","数据工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWWFZDF3GR3XDG2G0W3XCJ","数据治理与目录管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39],"workflow","auto deletion workflow","automation","workflows","logging","audit","gdpr","privacy","data","2026-11-10 10:12:30",false,"---\nname: auto-deletion-workflow\ndescription: >-\n  Implements automated data deletion workflows for GDPR Article 17 right to erasure and\n  retention period expiry. Covers cascading deletion across dependent systems, dependency\n  handling for referential integrity, confirmation logging, and audit trail generation.\n  Activate for automated deletion, erasure automation, data purge, retention expiry queries.\nlicense: Apache-2.0\nmetadata:\n  author: mukul975\n  version: \"1.0\"\n  domain: privacy\n  subdomain: data-retention-deletion\n  tags: \"automated-deletion, right-to-erasure, gdpr-article-17, data-purge, retention-expiry\"\n---\n\n# Automated Data Deletion Workflow\n\n## Overview\n\nAutomated deletion workflows ensure that personal data is removed from all systems when retention periods expire or when a valid erasure request is received under GDPR Article 17. Manual deletion at scale is error-prone and fails to meet the storage limitation principle consistently. This skill defines the architecture, logic, and operational procedures for building automated deletion pipelines that handle cascading dependencies, maintain referential integrity, produce audit-grade confirmation logs, and satisfy both scheduled retention expiry and on-demand erasure requests.\n\n## Legal Foundation\n\n### GDPR Article 17(1) — Right to Erasure\n\nThe data subject shall have the right to obtain from the controller the erasure of personal data concerning him or her without undue delay, and the controller shall have the obligation to erase personal data without undue delay where one of the specified grounds applies.\n\n### GDPR Article 5(1)(e) — Storage Limitation\n\nPersonal data shall be kept for no longer than is necessary for the purposes for which the personal data are processed. Automated deletion is the primary technical measure for enforcing this principle at scale.\n\n### GDPR Article 25(1) — Data Protection by Design\n\nThe controller shall implement appropriate technical and organisational measures designed to implement data-protection principles, such as data minimisation, in an effective manner. Automated deletion is a core by-design control.\n\n### GDPR Article 30(1)(f) — Envisaged Time Limits for Erasure\n\nRecords of processing activities must include, where possible, the envisaged time limits for erasure of the different categories of data. Automated deletion systems operationalize these envisaged time limits.\n\n## Automated Deletion Architecture\n\n### Deletion Trigger Types\n\n| Trigger Type | Source | SLA | Priority |\n|-------------|--------|-----|----------|\n| Retention expiry | Retention schedule metadata reaching calculated deletion date | Within 30 days of expiry | Standard |\n| Data subject erasure request | Verified Art. 17 request via DSAR workflow | Within 30 calendar days of verified request | High |\n| Consent withdrawal | Consent management platform event | Within 30 days (best practice: 72 hours) | High |\n| Account closure | Customer account termination event | Per retention schedule (post-closure retention period) | Standard |\n| Purpose completion | Processing purpose fulfilled, no further legal basis | Within 30 days of purpose completion | Standard |\n| Legal hold release | Litigation hold lifted by Legal counsel | Within 14 days of hold release | Standard |\n\n### System Architecture\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                   DELETION ORCHESTRATOR                      │\n│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐  │\n│  │  Trigger      │  │  Dependency  │  │  Execution       │  │\n│  │  Engine       │  │  Resolver    │  │  Engine          │  │\n│  │              │  │              │  │                  │  │\n│  │ - Scheduled   │  │ - FK mapping │  │ - System agents  │  │\n│  │ - Event-driven│  │ - Cascade    │  │ - API calls      │  │\n│  │ - On-demand   │  │   rules      │  │ - Direct DB ops  │  │\n│  │ - Hold check  │  │ - Orphan     │  │ - File system    │  │\n│  │              │  │   handling   │  │   purge          │  │\n│  └──────┬───────┘  └──────┬───────┘  └────────┬─────────┘  │\n│         │                 │                    │             │\n│         └────────┬────────┘                    │             │\n│                  ▼                             │             │\n│  ┌──────────────────────────┐                 │             │\n│  │  Deletion Job Queue      │─────────────────┘             │\n│  │  (Priority-ordered)      │                               │\n│  └──────────────────────────┘                               │\n│                  │                                           │\n│                  ▼                                           │\n│  ┌──────────────────────────┐  ┌──────────────────────────┐ │\n│  │  Confirmation Logger     │  │  Audit Trail Generator   │ │\n│  │  - Per-system status     │  │  - Immutable audit log   │ │\n│  │  - Completion timestamp  │  │  - Deletion certificate  │ │\n│  │  - Verification hash     │  │  - Regulatory report     │ │\n│  └──────────────────────────┘  └──────────────────────────┘ │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Deletion Workflow Procedures\n\n### Workflow 1: Scheduled Retention Expiry Deletion\n\n```\n[Daily Retention Scan — 02:00 UTC]\n         │\n         ▼\n[Query all records where calculated_deletion_date \u003C= TODAY + 30 days]\n         │\n         ▼\n[For each record approaching expiry]\n   │\n   ├── [Check: Active litigation hold?]\n   │     ├── Yes ──► [Skip — log hold reference, notify Legal]\n   │     └── No ──► Continue\n   │\n   ├── [Check: Active regulatory investigation?]\n   │     ├── Yes ──► [Skip — log investigation reference]\n   │     └── No ──► Continue\n   │\n   ├── [Check: Pending data subject request referencing this data?]\n   │     ├── Yes ──► [Coordinate with DSAR workflow]\n   │     └── No ──► Continue\n   │\n   ├── [Check: Retention exception approved?]\n   │     ├── Yes ──► [Skip — log exception reference and expiry]\n   │     └── No ──► Continue\n   │\n   ▼\n[Add to deletion job queue with priority: STANDARD]\n         │\n         ▼\n[On calculated_deletion_date: Execute deletion]\n```\n\n### Workflow 2: On-Demand Erasure Request Deletion\n\n```\n[Verified Art. 17 Erasure Request Received]\n         │\n         ▼\n[Data Discovery — Identify all instances of data subject's data]\n   │\n   ├── Primary databases (CRM, ERP, HR system)\n   ├── Data warehouse and analytics platforms\n   ├── File storage (SharePoint, network drives, cloud storage)\n   ├── Email and communication systems\n   ├── Backup and archive systems\n   ├── Third-party processor systems\n   └── Logs and audit trails\n         │\n         ▼\n[Generate Deletion Manifest]\n   Reference: DEL-YYYY-NNNN\n   Data Subject: [Pseudonymised reference]\n   Systems identified: [List with record counts]\n   Exceptions identified: [Any Art. 17(3) exceptions]\n   Estimated completion: [Date]\n         │\n         ▼\n[DPO Review and Approval]\n   ├── Approved ──► [Add to deletion job queue with priority: HIGH]\n   └── Exceptions found ──► [Partial deletion — exclude excepted data]\n         │\n         ▼\n[Execute deletion across all identified systems]\n```\n\n### Workflow 3: Cascading Deletion Logic\n\nWhen deleting a primary record, dependent records across related systems must also be deleted. The cascading deletion resolver handles referential integrity:\n\n```\n[Primary Record Identified for Deletion]\n         │\n         ▼\n[Load Dependency Map for Record Type]\n         │\n         ▼\n[Resolve Dependencies — Depth-First Traversal]\n   │\n   ├── [Level 0: Primary record]\n   │     Example: Customer record in CRM\n   │\n   ├── [Level 1: Direct dependents]\n   │     Example: Orders, support tickets, consent records\n   │\n   ├── [Level 2: Secondary dependents]\n   │     Example: Order line items, payment records, shipping records\n   │\n   └── [Level 3+: Tertiary dependents]\n         Example: Invoice line items, refund records\n         │\n         ▼\n[For each dependent record]\n   │\n   ├── [Shared dependency?]\n   │     (Record also linked to other primary records not being deleted)\n   │     ├── Yes ──► [Nullify foreign key — do NOT delete]\n   │     └── No ──► [Add to deletion manifest]\n   │\n   ├── [Legal retention override?]\n   │     (Dependent record has its own statutory retention requirement)\n   │     ├── Yes ──► [Anonymize link to primary record, retain dependent]\n   │     └── No ──► [Add to deletion manifest]\n   │\n   └── [Aggregated\u002Fstatistical record?]\n         (Record contributes to aggregated reporting)\n         ├── Yes ──► [Anonymize — remove personal identifiers, retain aggregate]\n         └── No ──► [Add to deletion manifest]\n         │\n         ▼\n[Execute deletion in reverse order (deepest dependents first)]\n   Level 3+ ──► Level 2 ──► Level 1 ──► Level 0\n```\n\n## Dependency Map Template\n\nThe following dependency map is configured for Orion Data Vault Corp:\n\n| Primary Entity | Dependent Entity | Relationship | Deletion Action | Retention Override |\n|---------------|-----------------|-------------|-----------------|-------------------|\n| Customer | Orders | 1:N | Cascade delete (after statutory retention) | 6 years — HMRC |\n| Customer | Support Tickets | 1:N | Cascade delete | 3 years — limitation period |\n| Customer | Consent Records | 1:N | Cascade delete | Retain suppression record |\n| Customer | Marketing Preferences | 1:1 | Cascade delete | Retain opt-out on suppression list |\n| Customer | Account Audit Log | 1:N | Anonymize (nullify customer reference) | 7 years — audit retention |\n| Order | Order Lines | 1:N | Cascade delete | Follows order retention |\n| Order | Payment Records | 1:N | Anonymize | 6 years — financial records |\n| Order | Shipping Records | 1:N | Cascade delete | Follows order retention |\n| Order | Invoices | 1:N | Anonymize | 6 years — tax records |\n| Employee | Payroll Records | 1:N | Cascade delete (after statutory retention) | 6 years — PAYE Regulations |\n| Employee | Performance Reviews | 1:N | Cascade delete | Duration of employment + 6 years |\n| Employee | Access Logs | 1:N | Anonymize | 2 years — security retention |\n\n## Confirmation Logging\n\n### Deletion Confirmation Record Structure\n\nEvery deletion execution produces an immutable confirmation record:\n\n```\nDELETION CONFIRMATION RECORD — Orion Data Vault Corp\n-----------------------------------------------------\nReference: DEL-2026-0142\nTrigger: Retention expiry \u002F Art. 17 request \u002F Consent withdrawal\nData Subject Reference: DS-HASH-a3f8c2e1\nRequest Date: 2026-02-15 (if applicable)\nExecution Date: 2026-03-14\nCompleted Date: 2026-03-14T14:23:07Z\n\nSYSTEMS PROCESSED:\n┌─────────────────────────┬──────────┬───────────────┬──────────────────┐\n│ System                  │ Records  │ Action        │ Status           │\n├─────────────────────────┼──────────┼───────────────┼──────────────────┤\n│ CRM (Salesforce)        │ 1        │ Hard delete   │ Confirmed        │\n│ ERP (SAP)               │ 47       │ Hard delete   │ Confirmed        │\n│ Data Warehouse (BQ)     │ 312      │ Hard delete   │ Confirmed        │\n│ Email (Exchange)        │ 23       │ Hard delete   │ Confirmed        │\n│ File Storage (S3)       │ 8        │ Hard delete   │ Confirmed        │\n│ Backup (Veeam)          │ N\u002FA      │ Flagged       │ Pending (cycle)  │\n│ Analytics (Mixpanel)    │ 156      │ Hard delete   │ Confirmed        │\n│ Support (Zendesk)       │ 12       │ Hard delete   │ Confirmed        │\n│ Audit Log               │ 89       │ Anonymized    │ Confirmed        │\n│ Payment (Stripe)        │ 5        │ Anonymized    │ Confirmed        │\n└─────────────────────────┴──────────┴───────────────┴──────────────────┘\n\nTHIRD-PARTY NOTIFICATIONS (Art. 19):\n- Processor A (Analytics SaaS): Notified 2026-03-14, confirmed 2026-03-16\n- Processor B (Email service): Notified 2026-03-14, confirmed 2026-03-15\n- Processor C (Payment gateway): Notified 2026-03-14, pending\n\nEXCEPTIONS APPLIED:\n- Financial records (invoices): Anonymized, retained until 2032-03-14 (6-year statutory period)\n- Audit log entries: Anonymized, retained until 2033-03-14 (7-year audit retention)\n\nBACKUP DELETION:\n- Backup system: Next full rotation cycle completes 2026-06-12\n- Expected complete erasure from backups: 2026-06-12\n\nVERIFICATION:\n- Post-deletion scan completed: 2026-03-14T14:45:00Z\n- Residual data found: None\n- Verification hash: SHA-256:e3b0c44298fc1c149afbf4c8996fb924...\n\nExecuted by: Deletion Orchestrator v3.2 (automated)\nReviewed by: [DPO Name] (for Art. 17 requests only)\n```\n\n### Audit Trail Requirements\n\n1. **Immutability**: Deletion confirmation records are written to an append-only audit log (write-once storage or blockchain-anchored hash).\n2. **Retention of confirmation records**: 3 years from deletion date (sufficient to demonstrate compliance if challenged).\n3. **No personal data in logs**: Confirmation records reference data subjects by pseudonymised identifier only — never by name, email, or other direct identifier.\n4. **Searchability**: Records must be searchable by deletion reference, data subject hash, trigger type, system, and date range.\n\n## Error Handling and Retry Logic\n\n### Deletion Failure Handling\n\n| Failure Type | Action | Retry | Escalation |\n|-------------|--------|-------|------------|\n| System unavailable | Queue for retry | 3 attempts at 1h, 4h, 24h intervals | Alert IT Operations after 3 failures |\n| Permission denied | Log error, flag for manual review | No automatic retry | Escalate to system administrator |\n| Referential integrity violation | Route to dependency resolver | Re-resolve dependencies, retry | Escalate to DPO if unresolvable |\n| Partial deletion (some records failed) | Log successful deletions, retry failed | 3 attempts | Escalate to IT + DPO |\n| Third-party processor non-response | Send reminder at 7 days | Follow up at 14 days | Escalate to DPO + Legal at 21 days |\n| Backup system — cannot delete from active backup | Flag for next rotation cycle | Monitor backup rotation schedule | Alert if not completed within 90 days |\n\n### Rollback Considerations\n\nDeletion is inherently irreversible. Therefore:\n\n1. **Pre-deletion snapshot**: For Art. 17 requests, take a temporary encrypted snapshot of the data to be deleted. Retain for 72 hours after deletion execution to allow for error correction. Auto-destroy after 72 hours.\n2. **Staged execution**: For large-scale retention expiry deletions (>10,000 records), execute in batches of 1,000 with verification between batches.\n3. **Dry-run mode**: All new deletion rules must be tested in dry-run mode for 30 days before activation. Dry-run produces the deletion manifest and confirmation record without executing actual deletion.\n\n## Monitoring and Reporting\n\n### Key Metrics\n\n| Metric | Target | Measurement |\n|--------|--------|-------------|\n| Retention expiry deletion completion rate | 99.5% within 30 days of expiry | Monthly |\n| Art. 17 erasure request completion rate | 100% within 30 calendar days | Per request |\n| Average deletion execution time | \u003C 4 hours (end-to-end across all systems) | Per execution |\n| Failed deletion rate | \u003C 0.5% | Monthly |\n| Backup deletion completion rate | 100% within backup rotation cycle | Per rotation |\n| Third-party processor confirmation rate | 100% within 14 days | Per notification |\n\n### Quarterly Compliance Report\n\nThe automated deletion system generates a quarterly report containing:\n\n1. Total records deleted by trigger type (retention expiry, Art. 17, consent withdrawal, etc.)\n2. Deletion completion rates against SLA targets\n3. Exceptions applied (with legal basis breakdown)\n4. Failed deletions and resolution status\n5. Third-party processor compliance rates\n6. Backup deletion status and outstanding items\n7. Trend analysis (volume growth, system coverage, performance)\n","# Automated Data Deletion Workflow\n\n## Overview\n\nAutomated deletion workflows ensure that personal data is removed from all systems when retention periods expire or when a valid erasure request is received under GDPR Article 17. Manual deletion at scale is error-prone and fails to meet the storage limitation principle consistently. This skill defines the architecture, logic, and operational procedures for building automated deletion pipelines that handle cascading dependencies, maintain referential integrity, produce audit-grade confirmation logs, and satisfy both scheduled retention expiry and on-demand erasure requests.\n\n## Legal Foundation\n\n### GDPR Article 17(1) — Right to Erasure\n\nThe data subject shall have the right to obtain from the controller the erasure of personal data concerning him or her without undue delay, and the controller shall have the obligation to erase personal data without undue delay where one of the specified grounds applies.\n\n### GDPR Article 5(1)(e) — Storage Limitation\n\nPersonal data shall be kept for no longer than is necessary for the purposes for which the personal data are processed. Automated deletion is the primary technical measure for enforcing this principle at scale.\n\n### GDPR Article 25(1) — Data Protection by Design\n\nThe controller shall implement appropriate technical and organisational measures designed to implement data-protection principles, such as data minimisation, in an effective manner. Automated deletion is a core by-design control.\n\n### GDPR Article 30(1)(f) — Envisaged Time Limits for Erasure\n\nRecords of processing activities must include, where possible, the envisaged time limits for erasure of the different categories of data. Automated deletion systems operationalize these envisaged time limits.\n\n## Automated Deletion Architecture\n\n### Deletion Trigger Types\n\n| Trigger Type | Source | SLA | Priority |\n|-------------|--------|-----|----------|\n| Retention expiry | Retention schedule metadata reaching calculated deletion date | Within 30 days of expiry | Standard |\n| Data subject erasure request | Verified Art. 17 request via DSAR workflow | Within 30 calendar days of verified request | High |\n| Consent withdrawal | Consent management platform event | Within 30 days (best practice: 72 hours) | High |\n| Account closure | Customer account termination event | Per retention schedule (post-closure retention period) | Standard |\n| Purpose completion | Processing purpose fulfilled, no further legal basis | Within 30 days of purpose completion | Standard |\n| Legal hold release | Litigation hold lifted by Legal counsel | Within 14 days of hold release | Standard |\n\n### System Architecture\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                   DELETION ORCHESTRATOR                      │\n│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐  │\n│  │  Trigger      │  │  Dependency  │  │  Execution       │  │\n│  │  Engine       │  │  Resolver    │  │  Engine          │  │\n│  │              │  │              │  │                  │  │\n│  │ - Scheduled   │  │ - FK mapping │  │ - System agents  │  │\n│  │ - Event-driven│  │ - Cascade    │  │ - API calls      │  │\n│  │ - On-demand   │  │   rules      │  │ - Direct DB ops  │  │\n│  │ - Hold check  │  │ - Orphan     │  │ - File system    │  │\n│  │              │  │   handling   │  │   purge          │  │\n│  └──────┬───────┘  └──────┬───────┘  └────────┬─────────┘  │\n│         │                 │                    │             │\n│         └────────┬────────┘                    │             │\n│                  ▼                             │             │\n│  ┌──────────────────────────┐                 │             │\n│  │  Deletion Job Queue      │─────────────────┘             │\n│  │  (Priority-ordered)      │                               │\n│  └──────────────────────────┘                               │\n│                  │                                           │\n│                  ▼                                           │\n│  ┌──────────────────────────┐  ┌──────────────────────────┐ │\n│  │  Confirmation Logger     │  │  Audit Trail Generator   │ │\n│  │  - Per-system status     │  │  - Immutable audit log   │ │\n│  │  - Completion timestamp  │  │  - Deletion certificate  │ │\n│  │  - Verification hash     │  │  - Regulatory report     │ │\n│  └──────────────────────────┘  └──────────────────────────┘ │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Deletion Workflow Procedures\n\n### Workflow 1: Scheduled Retention Expiry Deletion\n\n```\n[Daily Retention Scan — 02:00 UTC]\n         │\n         ▼\n[Query all records where calculated_deletion_date \u003C= TODAY + 30 days]\n         │\n         ▼\n[For each record approaching expiry]\n   │\n   ├── [Check: Active litigation hold?]\n   │     ├── Yes ──► [Skip — log hold reference, notify Legal]\n   │     └── No ──► Continue\n   │\n   ├── [Check: Active regulatory investigation?]\n   │     ├── Yes ──► [Skip — log investigation reference]\n   │     └── No ──► Continue\n   │\n   ├── [Check: Pending data subject request referencing this data?]\n   │     ├── Yes ──► [Coordinate with DSAR workflow]\n   │     └── No ──► Continue\n   │\n   ├── [Check: Retention exception approved?]\n   │     ├── Yes ──► [Skip — log exception reference and expiry]\n   │     └── No ──► Continue\n   │\n   ▼\n[Add to deletion job queue with priority: STANDARD]\n         │\n         ▼\n[On calculated_deletion_date: Execute deletion]\n```\n\n### Workflow 2: On-Demand Erasure Request Deletion\n\n```\n[Verified Art. 17 Erasure Request Received]\n         │\n         ▼\n[Data Discovery — Identify all instances of data subject's data]\n   │\n   ├── Primary databases (CRM, ERP, HR system)\n   ├── Data warehouse and analytics platforms\n   ├── File storage (SharePoint, network drives, cloud storage)\n   ├── Email and communication systems\n   ├── Backup and archive systems\n   ├── Third-party processor systems\n   └── Logs and audit trails\n         │\n         ▼\n[Generate Deletion Manifest]\n   Reference: DEL-YYYY-NNNN\n   Data Subject: [Pseudonymised reference]\n   Systems identified: [List with record counts]\n   Exceptions identified: [Any Art. 17(3) exceptions]\n   Estimated completion: [Date]\n         │\n         ▼\n[DPO Review and Approval]\n   ├── Approved ──► [Add to deletion job queue with priority: HIGH]\n   └── Exceptions found ──► [Partial deletion — exclude excepted data]\n         │\n         ▼\n[Execute deletion across all identified systems]\n```\n\n### Workflow 3: Cascading Deletion Logic\n\nWhen deleting a primary record, dependent records across related systems must also be deleted. The cascading deletion resolver handles referential integrity:\n\n```\n[Primary Record Identified for Deletion]\n         │\n         ▼\n[Load Dependency Map for Record Type]\n         │\n         ▼\n[Resolve Dependencies — Depth-First Traversal]\n   │\n   ├── [Level 0: Primary record]\n   │     Example: Customer record in CRM\n   │\n   ├── [Level 1: Direct dependents]\n   │     Example: Orders, support tickets, consent records\n   │\n   ├── [Level 2: Secondary dependents]\n   │     Example: Order line items, payment records, shipping records\n   │\n   └── [Level 3+: Tertiary dependents]\n         Example: Invoice line items, refund records\n         │\n         ▼\n[For each dependent record]\n   │\n   ├── [Shared dependency?]\n   │     (Record also linked to other primary records not being deleted)\n   │     ├── Yes ──► [Nullify foreign key — do NOT delete]\n   │     └── No ──► [Add to deletion manifest]\n   │\n   ├── [Legal retention override?]\n   │     (Dependent record has its own statutory retention requirement)\n   │     ├── Yes ──► [Anonymize link to primary record, retain dependent]\n   │     └── No ──► [Add to deletion manifest]\n   │\n   └── [Aggregated\u002Fstatistical record?]\n         (Record contributes to aggregated reporting)\n         ├── Yes ──► [Anonymize — remove personal identifiers, retain aggregate]\n         └── No ──► [Add to deletion manifest]\n         │\n         ▼\n[Execute deletion in reverse order (deepest dependents first)]\n   Level 3+ ──► Level 2 ──► Level 1 ──► Level 0\n```\n\n## Dependency Map Template\n\nThe following dependency map is configured for Orion Data Vault Corp:\n\n| Primary Entity | Dependent Entity | Relationship | Deletion Action | Retention Override |\n|---------------|-----------------|-------------|-----------------|-------------------|\n| Customer | Orders | 1:N | Cascade delete (after statutory retention) | 6 years — HMRC |\n| Customer | Support Tickets | 1:N | Cascade delete | 3 years — limitation period |\n| Customer | Consent Records | 1:N | Cascade delete | Retain suppression record |\n| Customer | Marketing Preferences | 1:1 | Cascade delete | Retain opt-out on suppression list |\n| Customer | Account Audit Log | 1:N | Anonymize (nullify customer reference) | 7 years — audit retention |\n| Order | Order Lines | 1:N | Cascade delete | Follows order retention |\n| Order | Payment Records | 1:N | Anonymize | 6 years — financial records |\n| Order | Shipping Records | 1:N | Cascade delete | Follows order retention |\n| Order | Invoices | 1:N | Anonymize | 6 years — tax records |\n| Employee | Payroll Records | 1:N | Cascade delete (after statutory retention) | 6 years — PAYE Regulations |\n| Employee | Performance Reviews | 1:N | Cascade delete | Duration of employment + 6 years |\n| Employee | Access Logs | 1:N | Anonymize | 2 years — security retention |\n\n## Confirmation Logging\n\n### Deletion Confirmation Record Structure\n\nEvery deletion execution produces an immutable confirmation record:\n\n```\nDELETION CONFIRMATION RECORD — Orion Data Vault Corp\n-----------------------------------------------------\nReference: DEL-2026-0142\nTrigger: Retention expiry \u002F Art. 17 request \u002F Consent withdrawal\nData Subject Reference: DS-HASH-a3f8c2e1\nRequest Date: 2026-02-15 (if applicable)\nExecution Date: 2026-03-14\nCompleted Date: 2026-03-14T14:23:07Z\n\nSYSTEMS PROCESSED:\n┌─────────────────────────┬──────────┬───────────────┬──────────────────┐\n│ System                  │ Records  │ Action        │ Status           │\n├─────────────────────────┼──────────┼───────────────┼──────────────────┤\n│ CRM (Salesforce)        │ 1        │ Hard delete   │ Confirmed        │\n│ ERP (SAP)               │ 47       │ Hard delete   │ Confirmed        │\n│ Data Warehouse (BQ)     │ 312      │ Hard delete   │ Confirmed        │\n│ Email (Exchange)        │ 23       │ Hard delete   │ Confirmed        │\n│ File Storage (S3)       │ 8        │ Hard delete   │ Confirmed        │\n│ Backup (Veeam)          │ N\u002FA      │ Flagged       │ Pending (cycle)  │\n│ Analytics (Mixpanel)    │ 156      │ Hard delete   │ Confirmed        │\n│ Support (Zendesk)       │ 12       │ Hard delete   │ Confirmed        │\n│ Audit Log               │ 89       │ Anonymized    │ Confirmed        │\n│ Payment (Stripe)        │ 5        │ Anonymized    │ Confirmed        │\n└─────────────────────────┴──────────┴───────────────┴──────────────────┘\n\nTHIRD-PARTY NOTIFICATIONS (Art. 19):\n- Processor A (Analytics SaaS): Notified 2026-03-14, confirmed 2026-03-16\n- Processor B (Email service): Notified 2026-03-14, confirmed 2026-03-15\n- Processor C (Payment gateway): Notified 2026-03-14, pending\n\nEXCEPTIONS APPLIED:\n- Financial records (invoices): Anonymized, retained until 2032-03-14 (6-year statutory period)\n- Audit log entries: Anonymized, retained until 2033-03-14 (7-year audit retention)\n\nBACKUP DELETION:\n- Backup system: Next full rotation cycle completes 2026-06-12\n- Expected complete erasure from backups: 2026-06-12\n\nVERIFICATION:\n- Post-deletion scan completed: 2026-03-14T14:45:00Z\n- Residual data found: None\n- Verification hash: SHA-256:e3b0c44298fc1c149afbf4c8996fb924...\n\nExecuted by: Deletion Orchestrator v3.2 (automated)\nReviewed by: [DPO Name] (for Art. 17 requests only)\n```\n\n### Audit Trail Requirements\n\n1. **Immutability**: Deletion confirmation records are written to an append-only audit log (write-once storage or blockchain-anchored hash).\n2. **Retention of confirmation records**: 3 years from deletion date (sufficient to demonstrate compliance if challenged).\n3. **No personal data in logs**: Confirmation records reference data subjects by pseudonymised identifier only — never by name, email, or other direct identifier.\n4. **Searchability**: Records must be searchable by deletion reference, data subject hash, trigger type, system, and date range.\n\n## Error Handling and Retry Logic\n\n### Deletion Failure Handling\n\n| Failure Type | Action | Retry | Escalation |\n|-------------|--------|-------|------------|\n| System unavailable | Queue for retry | 3 attempts at 1h, 4h, 24h intervals | Alert IT Operations after 3 failures |\n| Permission denied | Log error, flag for manual review | No automatic retry | Escalate to system administrator |\n| Referential integrity violation | Route to dependency resolver | Re-resolve dependencies, retry | Escalate to DPO if unresolvable |\n| Partial deletion (some records failed) | Log successful deletions, retry failed | 3 attempts | Escalate to IT + DPO |\n| Third-party processor non-response | Send reminder at 7 days | Follow up at 14 days | Escalate to DPO + Legal at 21 days |\n| Backup system — cannot delete from active backup | Flag for next rotation cycle | Monitor backup rotation schedule | Alert if not completed within 90 days |\n\n### Rollback Considerations\n\nDeletion is inherently irreversible. Therefore:\n\n1. **Pre-deletion snapshot**: For Art. 17 requests, take a temporary encrypted snapshot of the data to be deleted. Retain for 72 hours after deletion execution to allow for error correction. Auto-destroy after 72 hours.\n2. **Staged execution**: For large-scale retention expiry deletions (>10,000 records), execute in batches of 1,000 with verification between batches.\n3. **Dry-run mode**: All new deletion rules must be tested in dry-run mode for 30 days before activation. Dry-run produces the deletion manifest and confirmation record without executing actual deletion.\n\n## Monitoring and Reporting\n\n### Key Metrics\n\n| Metric | Target | Measurement |\n|--------|--------|-------------|\n| Retention expiry deletion completion rate | 99.5% within 30 days of expiry | Monthly |\n| Art. 17 erasure request completion rate | 100% within 30 calendar days | Per request |\n| Average deletion execution time | \u003C 4 hours (end-to-end across all systems) | Per execution |\n| Failed deletion rate | \u003C 0.5% | Monthly |\n| Backup deletion completion rate | 100% within backup rotation cycle | Per rotation |\n| Third-party processor confirmation rate | 100% within 14 days | Per notification |\n\n### Quarterly Compliance Report\n\nThe automated deletion system generates a quarterly report containing:\n\n1. Total records deleted by trigger type (retention expiry, Art. 17, consent withdrawal, etc.)\n2. Deletion completion rates against SLA targets\n3. Exceptions applied (with legal basis breakdown)\n4. Failed deletions and resolution status\n5. Third-party processor compliance rates\n6. Backup deletion status and outstanding items\n7. Trend analysis (volume growth, system coverage, performance)\n",{"name":5,"license":16,"metadata":45,"description":7},{"tags":46,"author":10,"domain":38,"version":47,"subdomain":48},"automated-deletion, right-to-erasure, gdpr-article-17, data-purge, retention-expiry","1.0","data-retention-deletion","main","9b2ef9eae161c00a17241d42a388571321b33e9f","plugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow",68,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-03-17 04:06:52",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill auto-deletion-workflow",{"tool":64,"command":65},"bunx","bunx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill auto-deletion-workflow",{"tool":67,"command":68},"pnpm","pnpm dlx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill auto-deletion-workflow","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow\u002FSKILL.md",true,[72,78,84,88],{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"assets\u002Ftemplate.md","ASSET","资产文件",2375,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow\u002Fassets\u002Ftemplate.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fstandards.md","REFERENCE","参考文档",1882,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow\u002Freferences\u002Fstandards.md",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fworkflows.md",3466,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow\u002Freferences\u002Fworkflows.md",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"scripts\u002Fprocess.py","SCRIPT","脚本",10011,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fauto-deletion-workflow\u002Fscripts\u002Fprocess.py",[95,118,138,156,178,194],{"skillNo":96,"name":97,"nameZh":98,"description":99,"descriptionZh":100,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":101,"categories":102,"keywords":109,"publishedAt":40},"01M6AG6K8R3XW10ENWH2FH18RH","workplace-email-privacy","职场邮件监控合规","Implements email and internet monitoring compliance in the workplace per Barbulescu v Romania (ECHR Grand Chamber), EDPB guidance, and national labour law. Covers acceptable use policies, legitimate expectation of privacy, proportionality testing, and content vs metadata monitoring. Keywords: email monitoring, Barbulescu, workplace privacy, internet monitoring, acceptable use policy, ECHR, proportionality.","依据 Barbulescu 诉罗马尼亚案（欧洲人权法院大法庭）、EDPB 指引及各国劳动法，实施工作场所电子邮件与互联网监控合规。涵盖可接受使用政策、合理的隐私期待、比例原则测试以及内容监控与元数据监控的区别。关键词：邮件监控、Barbulescu、职场隐私、互联网监控、可接受使用政策、ECHR、比例原则。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fworkplace-email-privacy\u002FSKILL.md",[103,106],{"categoryNo":104,"categoryName":105,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BZ8629M5XJGKJA00EMEKY5","人力资源与劳动法咨询",{"categoryNo":107,"categoryName":108,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BZ862SE2RVA3NWBPE38BDA","人力资源专员",[110,111,38,112,113,39,114,115,116,117],"email","workplace email privacy","compliance","content","policy","testing","monitoring","metadata",{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":132,"publishedAt":40},"01M6AG6FRCBJY7D061BJZMNV49","whistleblower-data","举报人数据保护合规","Implements data protection compliance for whistleblowing systems under EU Directive 2019\u002F1937 and GDPR. Covers anonymous reporting channels, identity protection for whistleblowers and accused persons, retention limits, access restrictions, and retaliation prevention. Addresses national transpositions and DPA guidance. Keywords: whistleblower, Directive 2019\u002F1937, anonymous reporting, identity protection, retaliation, retention, reporting channel.","依据欧盟指令 2019\u002F1937 和 GDPR，为举报（吹哨）系统实施数据保护合规。涵盖匿名举报渠道、举报人与被指控人的身份保护、保存期限限制、访问限制以及反报复措施。涉及成员国转化立法与数据保护机构（DPA）指引。关键词：举报人、指令 2019\u002F1937、匿名举报、身份保护、报复、保存期限、举报渠道。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fwhistleblower-data\u002FSKILL.md",[126,129],{"categoryNo":127,"categoryName":128,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8829FDNTDYQRD7JSR70R9","数据保护法合规",{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C8X73GN95MVD9ZBEFQ388G","隐私合规专员",[39,133,134,135,112,136,37,38,137],"whistleblower data","identity","reporting","data protection","prevention",{"skillNo":139,"name":140,"nameZh":141,"description":142,"descriptionZh":143,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":144,"categories":145,"keywords":150,"publishedAt":40},"01M6AG6CJP0PW3X65HC7VP9SR9","vendor-termination-data","供应商终止数据返还与删除","Vendor termination data return and deletion procedures per GDPR Article 28(3)(g). Covers data extraction formats, deletion certification requirements, transition planning, residual data handling, and post-termination verification.","依据 GDPR 第 28(3)(g) 条的供应商终止数据返还与删除流程。涵盖数据提取格式、删除证明要求、过渡规划、残留数据处理以及终止后核验。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-termination-data\u002FSKILL.md",[146,149],{"categoryNo":147,"categoryName":148,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C86Y048YZK87F0K9M849KD","GDPR合规管理",{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},[39,151,152,153,154,37,38,155],"vendor termination data","planning","verification","extraction","certification",{"skillNo":157,"name":158,"nameZh":159,"description":160,"descriptionZh":161,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":162,"categories":163,"keywords":168,"publishedAt":40},"01M6AG69E277DXZB2NF6KV17ZA","vendor-risk-scoring","供应商隐私风险评分","Vendor privacy risk tiering methodology for processor management. Covers scoring factors including data volume, sensitivity, transfer locations, certifications, breach history, and control maturity with weighted risk calculation and tier assignment.","面向数据处理者管理的供应商隐私风险分级方法论。涵盖数据量、敏感度、传输地点、认证情况、泄露历史和控制成熟度等评分要素，通过加权风险计算进行风险分级与等级划分。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-risk-scoring\u002FSKILL.md",[164,167],{"categoryNo":165,"categoryName":166,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0H4NZYRXY1BY7X3G295NB","供应商准入与绩效管理",{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},[169,170,171,172,173,174,175,176,38,39,177],"vendor risk scoring","risk","risk scoring","methodology","risk-scoring","assessment","transfer","certifications","processor",{"skillNo":179,"name":180,"nameZh":181,"description":182,"descriptionZh":183,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":184,"categories":185,"keywords":188,"publishedAt":40},"01M6AG6655ABFKT2BBWHCP4PAT","vendor-privacy-due-diligence","供应商隐私尽职调查","Pre-contract vendor privacy due diligence per GDPR Article 28(1). Covers risk questionnaires, technical controls assessment, certification review, data flow analysis, and documented sufficiency decisions for processor engagement.","依据 GDPR 第 28(1) 条的签约前供应商隐私尽职调查。涵盖风险问卷、技术控制评估、认证审查、数据流分析以及针对处理者合作的书面充分性决策。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-privacy-due-diligence\u002FSKILL.md",[186,187],{"categoryNo":165,"categoryName":166,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},[38,189,37,190,174,191,192,39,177,170,155,193],"vendor privacy due diligence","review","onboarding","flow","analysis",{"skillNo":195,"name":196,"nameZh":197,"description":198,"descriptionZh":199,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":200,"categories":201,"keywords":204,"publishedAt":40},"01M6AG62C3VD8SYNGH4N7RHZTE","vendor-privacy-audit","供应商隐私合规审计","On-site and remote vendor audit procedures per GDPR Article 28(3)(h). Covers audit planning, evidence collection methodologies, finding classification, remediation tracking, and audit report generation for processor compliance verification.","依据 GDPR 第 28(3)(h) 条进行现场和远程供应商审计程序。涵盖审计计划、证据收集方法、问题发现分类、整改跟踪以及用于处理者合规验证的审计报告生成。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-privacy-audit\u002FSKILL.md",[202,203],{"categoryNo":147,"categoryName":148,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},[205,36,38,206,153,207,112,37,208,177,209,210,211,152],"vendor privacy audit","report","audit report","remediation","collection","remediation-tracking","classification"]