You can move an order to Archived Orders once its delivery date has passed. The delivery date is the latest delivery date Amazon has set for the order.
Until that date, the order is still in progress, so the app won't archive it and shows: "Unable to archive the order. This order has not completed its lifecycle."
How to archive an order