Skip to content

Delete all Table References in order to delete a test event (that has attendees, coaches and groups) from the app

juopmu edited this page May 7, 2020 · 2 revisions

Open the database in Postgres either in your terminal or through the Postgres application. Then enter the following lines:

DELETE FROM event_groups_applications;
DELETE FROM event_groups_coach_applications;
DELETE FROM event_groups;
DELETE FROM users WHERE email like '%@email.com';
DELETE FROM coach_applications WHERE event_id = {insert event_id here!};

Reminder: Don't forget the ; after each statement


Done - now you can click the 'DELETE' Button in the /admin/events view