This endpoint permanently removes a campaign and all its associated data from the system. This includes promotions, store associations, usage statistics, and historical performance data.
Campaign deletion is irreversible. All associated promotions will be deactivated immediately, and historical data will be permanently lost. Consider archiving campaigns instead of deletion for data retention.
When a campaign is deleted, the following occurs in sequence:
Validation: Verify deletion permissions and campaign status
Promotion Deactivation: Immediately stop all active promotions
Store Disassociation: Remove campaign from all associated stores
Data Archival: Create backup of all campaign data (if enabled)
Record Deletion: Remove campaign and related records from active database
Cache Invalidation: Clear all cached campaign data across systems
Audit Logging: Record deletion event for compliance and tracking
Data Archival: By default, campaign data is archived before deletion. This allows for potential data recovery and historical analysis while removing the campaign from active systems.
Alternative to Deletion: Consider setting campaign status to “inactive” or “archived” instead of deletion to preserve historical data while removing the campaign from customer-facing systems.
{ "success": false, "message": "Campaign cannot be deleted due to dependencies", "error_code": "DEPENDENCY_CONFLICT", "dependencies": [ "Linked to active store integrations", "Referenced by reporting system" ]}
Immediate Impact: Campaign deletion immediately affects all customer-facing systems. Active promotions will stop working instantly, which may impact customer experience and pending orders.