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:

  • Necessity: Data is retained only as long as necessary for the purposes for which it was collected
  • Minimization: We minimize the amount and types of data retained
  • Transparency: Users are informed about retention periods
  • Security: Retained data is protected with appropriate security measures
  • Compliance: Retention periods comply with legal and regulatory requirements
  • User Rights: Users can request deletion of their data within policy constraints
  • 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:

  • Database Records: Permanently deleted using database deletion commands (DELETE/DROP)
  • Encrypted Data: Encryption keys destroyed, rendering data unrecoverable
  • Backup Data: Deleted when backups expire on rolling schedule
  • Third-Party Data: Deletion requests coordinated with relevant subprocessors/recipients as needed
  • Verification: The API returns which tables it deleted. We do not keep a separate tamper-proof deletion certificate.
  • 4.2 User-Initiated Deletion

    Users can delete their data through:

  • Individual Cost Entries: Immediate deletion via Data Input page
  • Integration Disconnection: Immediate token revocation, data deleted per schedule
  • Full Account Deletion: Settings → Account → Delete Account Confirmation required
  • Confirmation schedules deletion. The account stays recoverable for 30 days
  • A daily job then permanently deletes production data and the login
  • Backup copies remain until those backup files age out
  • An email confirmation is not sent by the delete-account endpoint
  • 4.3 Automated Deletion

    What actually runs:

  • The account-deletion job runs daily and hard-deletes accounts whose 30-day hold has ended
  • The AI chat retention job runs daily and purges in-app chat messages and Profit Agent threads older than 90 days
  • The platform orders job deletes TikTok Shop order and fee rows whose disconnect purge date has passed
  • Backup scripts prune local backup folders older than 30 days when they are run. A daily cron is not installed yet.
  • We do not run a daily job that deletes inactive accounts, expires all sessions, or erases application logs older than 90 days
  • 5. Legal and Regulatory Retention

    5.1 Legal Hold

    Data subject to legal proceedings, regulatory investigation, or audit may be retained beyond standard periods:

  • Automatic deletion suspended when legal hold is placed
  • Data retained until legal hold is lifted
  • Users notified if their data is subject to legal hold
  • Documented justification for extended retention
  • 5.2 Compliance Obligations

    Certain data may be retained longer to comply with:

  • Tax laws (financial records: 7 years)
  • Accounting standards (billing records: 7 years)
  • Security incident documentation (7 years)
  • Contractual obligations with partners
  • 6. Data Minimization

    To support data minimization principles:

  • We collect only data necessary for service provision
  • Data fields are reviewed annually for necessity
  • Unused or unnecessary data is purged
  • Data anonymization applied where possible
  • Aggregated analytics used instead of individual data when feasible
  • 7. User Rights and Requests

    7.1 Right to Erasure (Right to be Forgotten)

    Users can request deletion of their personal data:

  • Submit request via Settings → Account → Delete Account or email hello@costradar.ai
  • Identity verification required
  • Deletion completed within 30 days
  • Exceptions apply for data required by law or legitimate interests
  • 7.2 Data Portability

    Before deletion, users can export their data:

  • Export available in JSON or CSV format
  • Includes all cost entries, integration data, and account information
  • Delivered within 48 hours of request
  • 8. Retention Schedule Summary

    9. Monitoring and Compliance

    We ensure adherence to this policy through:

  • Automated deletion processes with logging and monitoring
  • Regular audits of retained data
  • Annual policy review and updates
  • Staff training on data retention requirements
  • Compliance checks with GDPR, CCPA, and other regulations
  • 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.