How to remove device_tracker from database?

Not working for me the solution with “Recorder: Purge entities”.
I managed to resolve the problem like this:

  1. go to File Editor (or other editors for HA files)
  2. Search for known_devices.yaml
  3. Search in this file the entities that you want to remove and delete them.
  4. Save the file and restart HA

Maybe will help someone