App Logo
aliexpress.com

Remove AliExpress product from cart

Automatically remove AliExpress product from cart on aliexpress.com. Remove a product from the AliExpress cart of this browser by its product id (as List AliExpress cart items returns it), every variant and whatever the quantity, and return what is left in the cart: each line with its line id, product id, offer id, name, seller, quantity, unit price and line price, plus the unit count and the total. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure. Works as a guest, with no account.

Inputs

product_id required

Product id of the lines to remove, as List AliExpress cart items or Add AliExpress product to cart return it (a product page link works too). Every line of this product is removed, whatever its variant and quantity.

review_hash optional

review_hash of each line of this product, from List AliExpress cart items, comma-separated. Without it, or when a line changed since, nothing is removed and the error gives the lines as they are now with their hashes.

Output

count required

Number of units left in the cart.

lines required
total required

Sum of the line prices left, shipping not included.

removed required

True when the product was in the cart and is gone now; false when it was not in the cart.

currency optional

FAQ

Remove a product from the AliExpress cart of this browser by its product id (as List AliExpress cart items returns it), every variant and whatever the quantity, and return what is left in the cart: each line with its line id, product id, offer id, name, seller, quantity, unit price and line price, plus the unit count and the total. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure. Works as a guest, with no account.
Ask an AI agent connected to Reduck to run reduck/aliexpress.com/remove_from_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/aliexpress.com/remove_from_cart
You do not need one. "Remove AliExpress product from cart" drives the real aliexpress.com pages in a browser, so it works whether or not aliexpress.com offers an API for this.
Required: product_id. Optional: review_hash.
It returns count, lines, total, removed, currency.
No. It only uses pages of aliexpress.com that are reachable without signing in.
It makes changes on aliexpress.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/aliexpress.com/remove_from_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/aliexpress.com/remove_from_cart
It is one of Reduck's official scripts.

Start building not clicking