Skip to content

Instantly share code, notes, and snippets.

@JawsomeJason
Created February 26, 2019 21:18
Show Gist options
  • Save JawsomeJason/d4ea81024d218b3717c647db68f6ebd9 to your computer and use it in GitHub Desktop.
Save JawsomeJason/d4ea81024d218b3717c647db68f6ebd9 to your computer and use it in GitHub Desktop.
Delete all Alexa scenes
/* go to https://alexa.amazon.com/spa/index.html#scenes and paste this into the console */
Array.prototype.slice.call(document.querySelectorAll('.d-connected-home-link-btn')).map(el => el.getAttribute('appliance-id')).forEach(id => { console.log(id); fetch(`https://alexa.amazon.com/api/phoenix/appliance/${id}`, { method: 'DELETE' }) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment