Skip to content

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.

  1. 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';
  1. Log in to the web UI, browse to Settings -> Danger Zone, hit Clear & Regenerate and wait for a couple of minutes
Clone this wiki locally