DELETE
{stores_service_api_base_url}
/
stores
/
{store_id}
/
status
{
  "success": true,
  "message": "<string>",
  "campaign_id": "<string>",
  "deleted_at": "<string>",
  "affected_items": {
    "promotions_deleted": 123,
    "store_associations_removed": 123,
    "historical_records_archived": 123
  },
  "archive_location": "<string>"
}
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.

Path Parameters

company_id
string
required
The unique identifier of the company that owns the campaign
campaign_id
string
required
The unique identifier of the campaign to delete

Query Parameters

current_local_date
string
Current local date for audit and timezone purposes (e.g., “Nov 15 2024 03:46:34”)
force_delete
boolean
default:"false"
Force deletion even if campaign has active promotions or associations
archive_data
boolean
default:"true"
Whether to create an archive backup before deletion

Response

success
boolean
Indicates whether the deletion was successful
message
string
Confirmation message or error details
campaign_id
string
The ID of the deleted campaign
deleted_at
string
Timestamp when the deletion occurred
affected_items
object
Summary of what was deleted along with the campaign
archive_location
string
Location where archived data was stored (if archive_data=true)

Response Example

{
  "success": true,
  "message": "Campaign successfully deleted",
  "campaign_id": "1000010",
  "deleted_at": "2024-01-15T16:45:00Z",
  "affected_items": {
    "promotions_deleted": 3,
    "store_associations_removed": 5,
    "historical_records_archived": 1247
  },
  "archive_location": "s3://campaign-archives/company-1000058/campaign-1000010-20240115.json"
}
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.

Pre-Deletion Checks

Use Cases

Error Responses

Immediate Impact: Campaign deletion immediately affects all customer-facing systems. Active promotions will stop working instantly, which may impact customer experience and pending orders.

Recovery Options