Author Topic: Mass cancel Amazon S&S orders  (Read 1288 times)

Offline Mileager

  • Dansdeals Bronze Elite
  • *
  • Join Date: Mar 2018
  • Posts: 48
  • Total likes: 9
  • DansDeals.com Hat Tips 0
    • View Profile
  • Location: NYC
Mass cancel Amazon S&S orders
« on: April 24, 2025, 05:19:30 PM »
After years of clicking thru every single order I knew there had to be a better way.

A quick Google search landed me here, with detailed instructions to cancel them all in one swift click.
Warning that it will absolutely BOMB your email with all the cancellation emails, though it is a total lifesaver!

https://www.reddit.com/r/amazonprime/comments/1d3agri/mass_cancel_move_all_subscribe_save_items_in_bulk/

Enjoy!

Offline joe1234

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Jul 2015
  • Posts: 2175
  • Total likes: 637
  • DansDeals.com Hat Tips 19
    • View Profile
Re: Mass cancel Amazon S&S orders
« Reply #1 on: April 24, 2025, 05:28:23 PM »
Wow! Following.

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 6338
  • Total likes: 16519
  • DansDeals.com Hat Tips 34
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Mass cancel Amazon S&S orders
« Reply #2 on: April 24, 2025, 05:36:05 PM »
Reddit is blocked by my filter. Is it easy to just post it here?

Offline Alexsei

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Sep 2011
  • Posts: 7004
  • Total likes: 2770
  • DansDeals.com Hat Tips 5
    • View Profile
    • Travel & Kivrei Zadikim
  • Location: Chinada/Canadstan/Crussia/North Kanada
  • Programs: COVID-25
Re: Mass cancel Amazon S&S orders
« Reply #3 on: April 24, 2025, 05:36:51 PM »
Reddit is blocked by my filter. Is it easy to just post it here?

Code: [Select]
JavaScript Bookmarklet to cancel every single subscribe and save item
How to use:

Visit this URL: https://www.amazon.com/auto-deliveries/subscriptionList?listFilter=active

Press the "Show more subscriptions" button until you can see every item you're subscribed to

Click on the bookmarklet that you created (steps below)

Every subscription will open in a new tab and automatically cancel (This step may take some time depending on how many items you have. I had to step away and make coffee)

How to create the bookmarklet (CHROME)
Right click on your bookmark bar and press "add page..."

Name the bookmark whatever you'd like (I called it S&S Cancel All')

Paste the following code into the URL (then press save) Sometimes code here is auto formatted by reddit, here is the raw code: https://pastebin.com/rHp6Ca1X

javascript:(function(){let baseUrl="https://www.amazon.com/auto-deliveries/ajax/cancelSubscriptionAction?actionType=cancelSubscription&canceledNextDeliveryDate=1730880000000&subscriptionId=";let spans=document.querySelectorAll(%27span[data-action="edit-link-subscription-tablet"]%27);let subscriptionIds=[...spans].map(span=>{let data=span.getAttribute(%27data-edit-link-subscription-tablet%27);let match=data.match(/subscriptionId=([&"]+)/);return match?match[1]:null;}).filter(id=>id);console.log(Found ${subscriptionIds.length} subscription IDs.);function openNextUrl(index){if(index>=subscriptionIds.length){console.log(%27All URLs have been opened.%27);return;}let id=subscriptionIds[index];let url=baseUrl+id;console.log(Opening URL: ${url});let newWindow=window.open(url,%27_blank%27);setTimeout(()=>{openNextUrl(index+1);},1000);}openNextUrl(0);})();

What does this script do?
Extracts the SubscriptionId from each item on this page

Generates the cancellation request URL

Loads the new URL into a new tab, canceling that product

*Please note that this option will generate 1 email in your inbox per product (amazon does this when you cancel), so you may get flooded with a lot of emails*

Javascript Bookmarklet to move every single subscribe and save item to 6 months in the future
Visit this URL: https://www.amazon.com/auto-deliveries/subscriptionList?listFilter=active&ref\_=rodx\_mys\_subscriptionFilter\_d\_ret\_active

Press Bulk Edit Schedule At the top

Click on the bookmarklet that you created (steps below)

Seconds later all of your items are now moved 6 months into the future

How to create the bookmarklet (CHROME)
Right click on your bookmark bar and press "add page..."

Name the bookmark whatever you'd like (I called it S&S Mover')

Paste the following code into the URL (then press save) Sometimes code here is auto formatted by reddit, here is the raw code: https://pastebin.com/VG22fTUD

javascript:(function(){let clickMoreSubscriptions=()=>{let e=document.querySelector('.a-section.subscription-pagination-trigger-container span[data-action="bulk-edit-pagination-action"] > .subscription-pagination-trigger');if(!e||e.parentElement.classList.contains('aok-hidden')){console.log('No more subscriptions to show or button is hidden.'),selects=[...document.querySelectorAll('select[name="changeNextDeliveryDate"]')],console.log(Found ${selects.length} select elements.),processNextSelect();return}e.click(),console.log('Clicked "Show more subscriptions" button.'),clickMoreSubscriptions.counter===undefined?clickMoreSubscriptions.counter=1:clickMoreSubscriptions.counter++,clickMoreSubscriptions.counter<=50?setTimeout(clickMoreSubscriptions,1e3):console.log(%27Stopped after 50 clicks.%27)};let selects=undefined;let processNextSelect=()=>{if(0===selects.length)return console.log(%27All select boxes processed!%27);let e=selects.shift(),t=e.options,n=t[t.length-1],s=e.value;if(s===n.value)return console.log(%27already set, skipping subscription%27),void setTimeout(processNextSelect,100);console.log(%27Changing select element:%27,e),console.log(Current value: ${s}, New value: ${n.value}),e.value=n.value;let o=new Event(%27change%27,{bubbles:!0});e.dispatchEvent(o);let r=e.closest(%27form%27).querySelector(%27.a-button-input%27);r&&r.click(),setTimeout(processNextSelect,100)};clickMoreSubscriptions()})();

What does this script do?
Auto expands the page so all your items show up ("Show more subscriptions" )

Finds all the items on the page that have a drop down date, and selects the last option (6 months away)

Auto-Clicks the "Apply" button for you

I tested this on my amazon account using chrome, if it doesn't work for you let me know and I can try my best to assist. Enjoy :)
vemeredenuchyontif

Online Shmiel s

  • Dansdeals Gold Elite
  • ***
  • Join Date: May 2022
  • Posts: 192
  • Total likes: 40
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: Brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #4 on: April 24, 2025, 09:23:56 PM »
The bookmark URL should be this:

javascript:(function(){let baseUrl="https://www.amazon.com/auto-deliveries/ajax/cancelSubscriptionAction?actionType=cancelSubscription&canceledNextDeliveryDate=1730880000000&subscriptionId=";let spans=document.querySelectorAll(%27span[data-action="edit-link-subscription-tablet"]%27);let subscriptionIds=[...spans].map(span=>{let data=span.getAttribute(%27data-edit-link-subscription-tablet%27);let match=data.match(/subscriptionId=([^&"]+)/);return match?match[1]:null;}).filter(id=>id);console.log(`Found ${subscriptionIds.length} subscription IDs.`);function openNextUrl(index){if(index>=subscriptionIds.length){console.log(%27All URLs have been opened.%27);return;}let id=subscriptionIds[index];let url=baseUrl+id;console.log(`Opening URL: ${url}`);let newWindow=window.open(url,%27_blank%27);setTimeout(()=>{openNextUrl(index+1);},1000);}openNextUrl(0);})();

Should be clicked only when you're on the Amazon SAS Webpage.
« Last Edit: April 24, 2025, 09:30:54 PM by Shmiel s »

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 6338
  • Total likes: 16519
  • DansDeals.com Hat Tips 34
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Mass cancel Amazon S&S orders
« Reply #5 on: April 24, 2025, 09:32:55 PM »
This works! Awesome!

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 13696
  • Total likes: 4436
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Mass cancel Amazon S&S orders
« Reply #6 on: April 24, 2025, 09:38:06 PM »
Sounds so cool! Any way to tell it which ones to cancel? (Someone's got to work on a "dedupe" :) )

Also note that it sounds like it doesn't actually cancel, just moves them all 6 months away. Still, you can run it again in 6 months (assuming there aren't any that you still want).
Workflowy. You won't know what you're missing until you try it.

Online Shmiel s

  • Dansdeals Gold Elite
  • ***
  • Join Date: May 2022
  • Posts: 192
  • Total likes: 40
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: Brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #7 on: April 24, 2025, 09:38:47 PM »
Warning that it will absolutely BOMB your email with all the cancellation emails, though it is a total lifesaver!
These days, all the emails get grouped in one.

Online Shmiel s

  • Dansdeals Gold Elite
  • ***
  • Join Date: May 2022
  • Posts: 192
  • Total likes: 40
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: Brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #8 on: April 24, 2025, 09:39:45 PM »
Also note that it sounds like it doesn't actually cancel, just moves them all 6 months away. Still, you can run it again in 6 months (assuming there aren't any that you still want).
there are both

Offline YitzyS

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jan 2015
  • Posts: 6338
  • Total likes: 16519
  • DansDeals.com Hat Tips 34
  • Gender: Male
    • View Profile
  • Location: Lakewood, NJ
Re: Mass cancel Amazon S&S orders
« Reply #9 on: April 24, 2025, 09:45:46 PM »
Sounds so cool! Any way to tell it which ones to cancel? (Someone's got to work on a "dedupe" :) )

Also note that it sounds like it doesn't actually cancel, just moves them all 6 months away. Still, you can run it again in 6 months (assuming there aren't any that you still want).
there are both
Both are posted in one post, so it looks like it, but the first command actually cancels them.

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 13696
  • Total likes: 4436
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Mass cancel Amazon S&S orders
« Reply #10 on: April 24, 2025, 09:58:20 PM »
got it!
Workflowy. You won't know what you're missing until you try it.

Online Essen est zich

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Apr 2017
  • Posts: 2971
  • Total likes: 1124
  • DansDeals.com Hat Tips 61
    • View Profile
  • Programs: Nichoach Vol 2
Re: Mass cancel Amazon S&S orders
« Reply #11 on: April 24, 2025, 10:39:31 PM »
Thank you!
Shloffen Shloft Zich

Offline yungermanchik

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Nov 2018
  • Posts: 3210
  • Total likes: 2760
  • DansDeals.com Hat Tips 2
    • View Profile
  • Location: Previous Signatures: If you chapped hana'ah from a post, like it; You think you know the answers and things are the way they seem.. it just ain't so -The Rebbe from Lublin-
Re: Mass cancel Amazon S&S orders
« Reply #12 on: April 24, 2025, 10:43:13 PM »
Is it just me, I had to click it a bunch of times, each time it deleted the first one.
Better than going through the hoops each time, but it didn't delete them all at once.
Small people talk about other people.
Average people talk about things
BIG PEOPLE TALK ABOUT IDEAS.

Offline Flatbush

  • Dansdeals Gold Elite
  • ***
  • Join Date: Jul 2011
  • Posts: 106
  • Total likes: 20
  • DansDeals.com Hat Tips 0
    • View Profile
  • Location: brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #13 on: April 24, 2025, 11:58:23 PM »
Worked for me thanks!

Offline joe1234

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Jul 2015
  • Posts: 2175
  • Total likes: 637
  • DansDeals.com Hat Tips 19
    • View Profile
Re: Mass cancel Amazon S&S orders
« Reply #14 on: April 25, 2025, 12:16:34 AM »
Is it just me, I had to click it a bunch of times, each time it deleted the first one.
Better than going through the hoops each time, but it didn't delete them all at once.
I had the same issue. Then I realized that I had pop ups blocked, so I unblocked it and then it started popping up every cancellation on its own page...
« Last Edit: April 25, 2025, 12:20:00 AM by joe1234 »

Online Shmiel s

  • Dansdeals Gold Elite
  • ***
  • Join Date: May 2022
  • Posts: 192
  • Total likes: 40
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: Brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #15 on: April 25, 2025, 12:47:26 AM »
Is it just me, I had to click it a bunch of times, each time it deleted the first one.
Better than going through the hoops each time, but it didn't delete them all at once.
Turn off the popup blocker on your browser

Offline nescafe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Jun 2016
  • Posts: 842
  • Total likes: 53
  • DansDeals.com Hat Tips 2
    • View Profile
  • Location: Brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #16 on: April 29, 2025, 11:50:41 AM »
Is there a break between pages, or all pages should popup simultaneously?

ETA: had to change my popup settings
« Last Edit: April 29, 2025, 11:54:07 AM by nescafe »

Offline aygart

  • Dansdeals Lifetime 20K Presidential Platinum Elite
  • ********
  • Join Date: May 2008
  • Posts: 20322
  • Total likes: 17499
  • DansDeals.com Hat Tips 13
    • View Profile
    • Lower Watt Energy Brokers
  • Programs: www.lowerwatt.com
Re: Mass cancel Amazon S&S orders
« Reply #17 on: April 29, 2025, 01:13:07 PM »
Is there a break between pages, or all pages should popup simultaneously?

ETA: had to change my popup settings
What was happening, what were the settings and what did you change them to?
Feelings don't care about your facts

Offline nescafe

  • Dansdeals Platinum Elite + Lifetime Gold Elite
  • ******
  • Join Date: Jun 2016
  • Posts: 842
  • Total likes: 53
  • DansDeals.com Hat Tips 2
    • View Profile
  • Location: Brooklyn
Re: Mass cancel Amazon S&S orders
« Reply #18 on: April 29, 2025, 01:55:23 PM »
What was happening, what were the settings and what did you change them to?
Only one page opened up. Once I allowed pop-ups, they all opened one after the other