Data Retention Policy
Data Retention Policy
Last Updated: November 15, 2026
1. Purpose and Scope
This Data Retention Policy establishes guidelines for how long CostRadar.ai retains different types of data, and the procedures for secure data deletion. This policy ensures compliance with data protection regulations (GDPR, CCPA) while maintaining data necessary for operational, legal, and business purposes.
This policy applies to all personal data, business data, and system data processed and stored by CostRadar.ai.
2. Data Retention Principles
Our data retention practices are guided by the following principles:
3. Data Retention Schedules
3.1 User Account Data
Active Account Information
Includes: Email address, user ID, account preferences, subscription plan
Retention: Retained while the account is active. Closing the account starts a 30-day hold. Production data is permanently deleted within 30 days unless you sign in and cancel deletion.
Authentication Credentials
Includes: Password hashes, session tokens
Retention: Password hashes stay during the 30-day deletion hold so you can sign in and restore. They are removed when the scheduled job deletes the auth user.
Inactive Accounts
Definition: Accounts with no login activity for 24 consecutive months
Action: We do not currently email inactive accounts at 22 months or delete them at 24 months. That job is not scheduled. Accounts remain until you delete them or we delete them on request.
3.2 Cost and Financial Data
Manual Cost Entries
Includes: User-entered cost descriptions, amounts, categories, dates
Retention: Retained while the account is active. Removed from production when the account is deleted.
Synced Store Platform Data
Includes: Orders, fees, products, and inventory metadata from Allegro, Amazon, BigCommerce, eBay, Shopify, WooCommerce, and TikTok Shop when those connections exist
Retention: Kept while the account exists. TikTok Shop order and fee rows are deleted within 30 days after disconnect. Other platforms' synced orders stay until the account is deleted. Tokens are deleted on disconnect.
Financial Analytics and Reports
Includes: Generated reports, profit margin calculations, trend analyses
Retention: Retained while account is active. Deleted 30 days after account deletion.
3.3 Integration Data
OAuth Access Tokens
Includes: Allegro, Amazon, BigCommerce, eBay, Shopify, WooCommerce, TikTok Shop, and optional ads tokens
Retention: Encrypted with AES-256-GCM while the integration is active. Deleted on disconnect and on account deletion. A provider-side authorization can remain until you revoke the app at that provider.
Integration Metadata
Includes: Connection timestamps, sync logs, provider account IDs
Retention: TikTok Shop disconnect replaces integration metadata with a disconnect record and deletes order and fee rows within 30 days. We do not run a separate 90-day metadata purge job.
3.4 AI Insights Data (Premium Plan)
AI-Generated Recommendations
Includes: Cost optimization insights, savings recommendations, AI analysis results, Close Pack narratives, LTV forecasts where generated
Retention: Stored in your account until deletion or account closure. Deleted 30 days after account deletion.
AI Chat & Profit Agent History
Includes: In-app AI chat messages (`ai_chat_messages`), Profit Agent threads and messages, and channel delivery metadata for Slack / Teams / WhatsApp when you connect those customer-connected channels
Retention: Purged on a rolling 90-day TTL (configurable server-side). Also removed on account deletion (chat rows cascade from auth users; Profit Agent threads are deleted explicitly; thread messages cascade from threads). Free-text prompts may be lightly redacted for emails, phone numbers, and IBAN-like tokens before they are sent to OpenAI.
OpenAI Processing
Note: Prompts and outputs for Insights, Profit Agent, Briefing, Support Chat, categorisation, report analysis, Close Pack, LTV agent, feedback suggestions, titles, and MCP ask
Retention: OpenAI's standard API keeps inputs and outputs for up to 30 days for abuse monitoring. Zero Data Retention is not enabled. Prompts can include business metrics and chat text. We do not claim that no personal identifier is ever sent.
3.5 System Logs and Security Data
Application Logs
Includes: Access logs, error logs, API request logs
Retention: Retained for 90 days for security monitoring and troubleshooting. Automatically deleted after 90 days.
Security Audit Logs
Includes: Authentication events, failed login attempts, permission changes
Retention: Retained for 90 days for security analysis. Extended to 7 years if part of security incident investigation.
IP Addresses
Purpose: Security monitoring, fraud prevention
Retention: Logged IP addresses retained for 90 days, then anonymized or deleted.
3.6 Communication and Support Data
Customer Support Tickets
Includes: Support inquiries, responses, attachments
Retention: Retained for 3 years for quality assurance and training purposes. Personal data anonymized after account deletion.
Marketing Communications
Includes: Email marketing consent, communication preferences
Retention: Retained while consent is active. Deleted 30 days after opt-out or account deletion.
3.7 Backup Data
Automated Backups
Purpose: Disaster recovery and data restoration
Retention: Backup scripts prune local folders after 30 days. A daily encrypted off-server job (AES-256 via gpg or age) is installed on the production host. Backups are not geo-redundant and there is no point-in-time recovery.
Deleted Account Backups
Note: Data from deleted accounts may persist in backups until they expire
Retention: Account deletion completes within 30 days. During the hold the rows stay so you can restore. After the hold, the daily job removes them from production. Copies inside backup files remain until those files are deleted.
4. Data Deletion Procedures
4.1 Secure Deletion Methods
When data reaches the end of its retention period or is manually deleted:
4.2 User-Initiated Deletion
Users can delete their data through:
4.3 Automated Deletion
What actually runs:
5. Legal and Regulatory Retention
5.1 Legal Hold
Data subject to legal proceedings, regulatory investigation, or audit may be retained beyond standard periods:
5.2 Compliance Obligations
Certain data may be retained longer to comply with:
6. Data Minimization
To support data minimization principles:
7. User Rights and Requests
7.1 Right to Erasure (Right to be Forgotten)
Users can request deletion of their personal data:
7.2 Data Portability
Before deletion, users can export their data:
8. Retention Schedule Summary
9. Monitoring and Compliance
We ensure adherence to this policy through:
10. Contact Information
For questions about data retention or deletion requests:
11. Policy Updates
This Data Retention Policy is reviewed and updated regularly. Changes will be effective immediately upon posting. Material changes reducing user rights will be communicated via email.