MemberPress does not currently have a ‘reset' button that will erase all data found in MemberPress. However, if you need to reset the Subscriptions, Transactions, Members, and settings data you can run the following queries *:
TRUNCATE TABLE wp_mepr_subscriptions;
TRUNCATE TABLE wp_mepr_transactions;
TRUNCATE TABLE wp_mepr_events;
TRUNCATE TABLE wp_mepr_members;
TRUNCATE TABLE wp_mepr_jobs;
TRUNCATE TABLE wp_mepr_rule_access_conditions;
TRUNCATE TABLE wp_mepr_tax_rates;
TRUNCATE TABLE wp_mepr_tax_rate_locations;
Then, you can run the following (they MUST be run in this order):
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('memberpresscoupon','memberpressgroup','memberpressproduct','mp-reminder', 'memberpressrule'));
DELETE FROM wp_posts WHERE post_type IN ('memberpresscoupon','memberpressgroup','memberpressproduct','mp-reminder', 'memberpressrule');
DELETE FROM wp_options WHERE option_name LIKE '%mepr%';
Also, you should run the following if you have the Corporate Accounts Add-on installed:
TRUNCATE TABLE wp_mepr_corporate_accounts;
If you have MemberPress Courses, you should run the following query:
TRUNCATE TABLE wp_mpcs_answers;
TRUNCATE TABLE wp_mpcs_attempts;
TRUNCATE TABLE wp_mpcs_questions;
TRUNCATE TABLE wp_mpcs_sections;
TRUNCATE TABLE wp_mpcs_user_progress;
and then run this one:
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('mpcs-course','mpcs-lesson','mpcs-quiz'));
DELETE FROM wp_posts WHERE post_type IN ('mpcs-course','mpcs-lesson','mpcs-quiz');
For PDF Invoices Add-on, you should run the following query:
TRUNCATE TABLE wp_mpdf_invoice_numbers;
TRUNCATE TABLE wp_mpdf_credit_notes;
For Downloads Add-on, you should run the following query:
TRUNCATE TABLE wp_mpdl_file_downloads;
TRUNCATE TABLE wp_mpdl_file_stats;