Removing old entities from Alexa

Hey, I have a two part question when it comes to the cloud alexa sync.

I have 100+ devices that have been synced to alexa, is there a way to remove them from alexa? I find going into each one on the alexa app rather tedious and time consuming, is there a bulk way?

And secondly is there a way to prevent new entities from being sync’d by default? I’d rather choose than have every entity automatically selected?


If you go to and navigate to smart home -> devices, there’s the list of devices you have synced.

If you scroll down at the bottom there is a forget all option.
This will remove all your devices and the next time you hit discover, it will only get the current ones.

Keep in mind that this route, will remove all your devices from alexa and (i think) all the routines you might have set up through alexa, so there’s some extra workload there to re-set them.

Personally i would sort by new, go to all the offline ones and delete them one by one or (i actually did that once) have a simple mouse macro program do it for you :slight_smile:

As for the sync by default, im using the cloud.yaml to declare which ones i want shared to alexa (have not used the “new” ui yet) so only the stuff i have in my yaml get synced.

Hope i helped a bit.


thanks Harry!

Happy to help :slight_smile:

Here is my example in the config file

listen_port: 80
- switch
name: “sparelight1”
hidden: false

Basally I saw only expose by switches and for every thing else I add them to manually to the entities list as hidden: false.

Also after you do a full removal of devices if you still have some pythons devices still showing do a power cycle on your Alexa devices.

I know this is from last year but I ran into the same problem. I posted my code on Stack Overflow but since i have no rep I fear it will be voted off the island so i’m posting here so someone can benefit from it.

I have a smart devices and had about 300 smart devices attached to Amazon Alexa from Home Assistant that I needed to remove. I couldn’t find a way to click more than one at a time and then confirm each. It was going to take a long time. I couldn’t remove all of them because I had about 15 scattered in there that I needed to keep so I wrote this script to remove them. In my case I removed only ones that mentioned “via Home Assistant” because those are the ones I wanted to remove. Sharing for others who might have this same problem.

  1. Use your computer and access using Chrome.

  2. Open up developer tools and the console tab(Cmd+option+j on a mac).

  3. Paste the script below and it should remove your devices and automatically confirm the removal.

  4. Please be sure you modify it for your needs as it could delete the wrong ones. This one works to remove all Home Assistant Devices as they are rendered today. I included the html so you could compare if it changes.


var rows = document.getElementsByTagName('DD');

for (var i = rows.length - 1; i >= 0; i--) {
  try {
    var row = rows[i];
    var title = row.querySelector('.center-left').querySelector('.sub-text');
    if (title.innerHTML.indexOf('via Home Assistant') > 0) {
      var remove = row.querySelector('.center-right').querySelector('button');;

      var confirm = document.getElementsByClassName('d-modal-button primary accept');
  } catch (error) {}

I’m guessing the html page will change over time so here is what one of the rows looks like today.

<dd automation-id="connected-home-appliance-231">
  <div class="center-left ">
    <div class="dd-title">Rear Stair Light</div>
    <div class="sub-text">light.ge_14294_in_wall_smart_dimmer_level_4 via Home Assistant</div>
  <div class="center-right">
      title="Remove Rear Stair Light"

This script is amazing and saved me days of reconciling my entities. Thank you !!

1 Like

Amazon has closed the website and now forces you to do it from your mobile phone.

At the moment I can’t find a way to delete several devices at once. More than 70 devices deleting them one by one. 🥲

Yeah…I’ve just added 120 devices which I now need to delete. :cry:

Try this (it works for me):

Good luck

The website only shows a QR code to install the mobile apps. Does anyone know if there is an API or something to do this?

1 Like

Another one with the same problem

Same here :confused:

Same for me !
The amazon web page seams updated and it is not possible for now to access at alexa from web page… :rage:

Same issue :frowning:
Does anyone find an automation to do this ?

On the weekend, I completely re-installed HA on a fresh Raspi5, because my ancient installation (started 2020) was messed up.
So I wanted a fresh start.

But now I have over 1000 orphan items in alexa, because HA synced all items to Alexa.

Because of the amount of stuff, the alexa app is nearly not usable.
After deleting one old item, it crash or get stuck.
It would take me weeks to delete all the old stuff in this way.
I still have the old Ha installation running and are connected to NabuCase and Alexa and set the “don’t expose entity” option. But this don’t remove the entity from Alexa.

So atm Alexa is not really usable at all for me. You can imagin the mood of the wife in a fully automated home with nearly hundreds of automation, primarily controlled by Alexa. We don’t even have switches on the walls anymore.

The only solution would be to create a fresh Amazon Account, but then I would lose all of my paid stuff.

Normally I don’t would complain because of a hobby project, but the Alexa Integration was the only reason I paid for NabuCase since 3-4 years.
So is there any solution on the horizon to get rid of all the HA entitys in Alexa, after Amazon killed the webpage?
I mean, if there is an API for putting entities to Alexa, there must be a delete api endpoint?

1 Like

exactly the same problem actually, no solution yet …

maybe its time to have an local mic/speaker…

Hello to everyone!!
I’m in the same situation… could we try to make some tasker action to doing this?