Deleting all user data

Created on 11 March 2024, 4 months ago
Updated 18 March 2024, 3 months ago

We are required to delete all user data from the site annually. Is there a safe way to delete all commerce orders, customer profiles, etc while retaining product info and store config?

Thanks for any suggestions.

💬 Support request
Status

Closed: won't fix

Version

2.38

Component

Developer experience

Created by

🇺🇸United States mygumbo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mygumbo
  • Status changed to Fixed 3 months ago
  • 🇮🇱Israel jsacksick

    Hi,

    Products, product variations and stores are distinct entities.
    Deleting orders, order items, profiles etc shouldn't have any impact / affect the product information.

    Depending on the volume of data you have to delete, you could simply use VBO. However if you have a large amount of data to delete, I'd recommend performing the deletion via a cron job running periodically.

  • Status changed to Active 3 months ago
  • 🇺🇸United States mygumbo

    Thanks. Profiles seem to (still) not work with VBO; there is a patch that lets them be bulk deleted 50 at a time.

  • Status changed to Closed: won't fix 3 months ago
  • 🇮🇱Israel jsacksick

    Support requests aren't answered from this issue queue.

    With the abundance of support available in Drupal Answers, the Drupal focused Stack Exchange site, we are no longer answering support requests in the issue queue.

    Support requests opened here will be closed (won't fix), so please search for existing answers or post new questions at:

    https://drupal.stackexchange.com (using the drupal-commerce tag)

    If you have a bug to report, you're welcome to do that, or reclassify this as a bug with reproducible steps.

Production build 0.69.0 2024