Back to OptimoRoute in Google Sheets
SheetXAI logo
OptimoRoute logo
OptimoRoute · Google Sheets Guide

Bulk Delete Cancelled Orders From OptimoRoute Using a Google Sheet

2026-05-14
5 min read

The Scenario

You are a logistics manager. It is Sunday at 11 AM. A severe weather alert went out this morning for tomorrow's delivery area — the company has decided to cancel tomorrow's run entirely. 80 delivery orders are already loaded into OptimoRoute for Monday, and if they stay there, the route optimization engine will try to plan around them during its overnight run. You need them cleared before that happens.

The list of order numbers is in your Excel sheet — column A, 80 rows. OptimoRoute has a bulk delete endpoint. The gap between those two facts is what you are currently solving.

The bad version:

  • You log into OptimoRoute and search for the first order number. You click delete. OptimoRoute asks you to confirm. You click confirm.
  • You do this 79 more times.
  • Around order 40, you accidentally delete an order that was not on your list — it had a similar order number and you did not check carefully enough. You realize the mistake 10 orders later and have to re-create that order manually.
  • It is 1:30 PM. The weekend is gone.

The decision to cancel took five minutes. The execution took two and a half hours.

The Easy Way: One Prompt in SheetXAI

SheetXAI is an AI agent that lives inside your Google Sheet. It can read the order numbers in your sheet and delete them from OptimoRoute in a bulk operation — writing the result back for each row so you know what landed.

Open the SheetXAI sidebar and ask:

Delete all OptimoRoute orders whose order numbers appear in column A of this sheet — write "deleted" or "not found" into column B for each row.

What You Get

  • All 80 order numbers in column A are submitted for deletion in a single batch operation.
  • Column B is written with "deleted" for each successful deletion, or "not found" if the order number was not present in OptimoRoute.
  • If an order cannot be deleted because it is already in a completed state, that status is written into column B as well.
  • The batch completes in well under a minute. The Monday route plan runs clean.

What If the Data Is Not Quite Ready

The order numbers are in a tab named "Cancelled Orders" rather than the main sheet

Bulk-delete the order numbers listed in the 'Cancelled Orders' tab from OptimoRoute — up to 500 at once — and write the result for each row into column B of that tab, then write a summary into cell D1 showing how many were deleted, how many were not found, and how many failed.

Some rows in the sheet have already been marked as cancelled in an internal system and should be skipped

Delete all OptimoRoute orders whose numbers appear in column A, but only process rows where column C says "confirmed cancel" — write the deletion result into column D and skip any row where column C is blank or says "pending."

The cancellation list is spread across multiple date tabs and needs to be processed in sequence

Process each tab in this workbook — 'Monday,' 'Tuesday,' 'Wednesday' — delete all order numbers in column A from OptimoRoute, and write the result into column B of each respective tab.

You need to cancel orders, verify nothing important was caught in the batch, and notify the team with a count

Delete all order numbers in column A from OptimoRoute and write the result into column B — then write a summary into cell D1 showing total deleted, total not found, and total failed — and flag any row in column C where the order number matched a "high priority" tag in the 'Priority List' tab so those can be reviewed before the re-plan.

The deletion, summary, and priority flag run together. The re-planning conversation starts with the right context.

Try It

Get the 7-day free trial of SheetXAI and open the sheet where your cancelled order numbers are listed, then ask it to clear them from OptimoRoute and write the result back for each row. Also see how to bulk-upload replacement orders once the weather clears, and how to trigger route optimization after the new orders are in place.

Stop memorizing formulas.
Tell your spreadsheet what to do.

Join 4,000+ professionals saving hours every week with SheetXAI.

Learn more