You can choose between 3 options.
You can either set your choice in the configuration file or define it in your .env file:
Those are the states you can define:
Orders can't be deleted at all.
Orders can be deleted in development mode only.
Orders can be deleted by all users, if they got the correct Statamic permissions.
This is the safest option and won't let you delete any orders.
You can delete orders in development environment. To be more specific, you can delete orders as long as your environment is not set to production.
APP_ENV=local // You can delete ordersAPP_ENV=production // You can't delete any orders
If set to permissions, every super admin can delete orders. Other users can delete orders as well, as long as they have the right permissions.
Make sure to set those permissions for the users you want to allow deleting orders.