delete_generated_data

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/

The wp rcp delete_generated_data command deletes all data that was generated through wp rcp commands (such as wp rcp memberships --create).

Options:

  • --skip-memberships=<boolean>: Optional. Whether to skip deleting generated memberships.
  • --skip-customers=<boolean>: Optional. Whether to skip deleting generated customers.
  • --skip-payments=<boolean>: Optional. Whether to skip deleting generated payments.

Examples:

Delete all generated data.

wp rcp delete_generated_data

Delete generated payments only.

wp rcp delete_generated_data --skip-memberships --skip-customers

Powered by Zendesk