Depending on the delivery window that you've selected, you'll have until a specific time to edit or cancel the order.
To check your order cutoff time, view your upcoming order from Your Orders page. Under your delivery day and window, you'll see this text: Make changes until [order window cutoff time] tomorrow.
For more details about delivery windows, check out this article!