How to delete a track?

There is one track shown in Timeline, which has to be deleted, because in this week there had been no tracking at all. The track is from an accidentally import of points. The import was deleted and the points of this import are gone. Sadly the track stays.

I can’t find a way to delete this track. Any hint about how to delete a track?

Doing the following at your own risk!!

I use dockhand for managing docker.

FIRST: BACKUP

dockhand => shell => dawarich_db User postgres

psql
\l #list all db’s
\c dawarich_development
DELETE FROM track_segments WHERE track_id IN (track #);
DELETE FROM tracks WHERE id IN (track #);
\q #quit

Perfect! That worked. Thank you!

@xaeGh6no This was a bug in versions before 1.8.0: deleting an import could leave an empty track in the Timeline. It is fixed in 1.8.0; upgrading also queues cleanup for existing empty tracks, so no manual database changes should be necessary.

It happend in 1.9.0 either.

I deleted all corresponding imports but the wrong track was shown in ‘Maps’

Yes, for me too. That’s why I asked. Perhaps this should be added to the FAQ.