-
-
Notifications
You must be signed in to change notification settings - Fork 173
Reverting WakaTime import
Ferdinand Mütsch edited this page Apr 4, 2021
·
1 revision
In case you imported heartbeats from WakaTime and want to reverse that import for some reason, e.g. because it was incomplete due to #152, a few manual steps are required. Currently, reverting an import is only possible for server admins with access to the database.
Assuming your user name is johndoe
.
- Connect to your database and run these queries (syntax might slightly vary depending on the DBMS you're using):
DELETE FROM key_string_values WHERE key = 'last_import_johndoe' LIMIT 1;
DELETE FROM heartbeats WHERE user_id = 'johndoe' and origin = 'wakatime';
- Log in to the web UI, browse to
Settings -> Danger Zone
, hitClear & Regenerate
and wait for a couple of minutes