I cannot stop or delete versions of a project created as it was created as a flexible environment within the EU. I understand the restriction by region but cannot work out why it cannot be removed.
jamie@dartmoor-1320:~$ gcloud preview app versions delete 20160607t131220
Deleting the following versions:
- dartmoor-1320/default/20160607t131220
Do you want to continue (Y/n)?
Deleting [default/20160607t131220]...failed.
ERROR: (gcloud.preview.app.versions.delete) Issue deleting version: [default/20160607t131220]
[default/20160607t131220]: Error Response: [13] Managed VMs can not be hosted in the application's region. (e~))
The GUI fails too but with a non descript error message.
Select a document and click Details. You can also click the document's link to see its versions. Select one or more document versions you want to delete from the VERSIONS tab and click Delete.
If you don't see Version History, in the dialog, select the ... (ellipsis), and then select Version History. In the Version History dialog, select Delete Minor Versions. To delete the minor versions of the file you've selected, select OK.
It says that the Version of this item cannot be deleted because it’s on hold or retention. You are getting this error because there must be retention scheduled for your site collection in the Admin center.
A list of versions of the file appears. In the Version History dialog, hover next to the version you want, and to get a list of options, on the right side, select the down arrow. Select Delete. To delete the version, select OK.
I have recently faced this issue when I was trying to delete a version history in the library. It says that the Version of this item cannot be deleted because it’s on hold or retention. You are getting this error because there must be retention scheduled for your site collection in the Admin center.
This error is not specific while deleting huge versioning details. In fact, if you delete a list or library with too many objects, you will get the same error with another message. Follow the below steps to solve the issue. I have created a step by step solution of how to resolve it.
You have to have at least one version for the default module. That's the reason why it doesn't allow you to delete it.
You need to deploy a new version, it can be a Flexible VM (deployed to another region in your situation), or Standard VM.
As a workaround, when you don't have any app to replace it right now, you can deploy an empty app instead. You have to create an app.yaml
:
---
runtime: python38
handlers:
- url: /
script: auto
and deploy it using:
gcloud app deploy app.yaml
As your app.yaml
doesn't have any script to execute, you'll not be charged for any instance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With