The dispatch.yaml
file is an application level configuration, shared by all app's services. All routes for all services need to be aggregated into the file.
Deploying one version of the file overwrites the previous one, so you need not delete from it the routes you want to preserve.
AFAIK there is no way to revert a dispatch.yaml
deployment from the cloud console, you just need to re-deploy a previous version of the file. Hopefully you had it under version control.
If you didn't version control the file but you happen to store it somewhere inside the directory of one of your services (i.e. considered part of the service's app code) and you still have a version of that service deployed you may be able to find it by checking the source code of that deployed version:
Note: be aware that there are other shared configs (see Optional configuration files) which need similar attention.