Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot delete version

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.

like image 503
latitudehopper Avatar asked Jun 07 '16 12:06

latitudehopper


People also ask

How do I delete a file version?

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.

How do I remove minor versions in Excel?

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.

Why can’t I delete the version of this item?

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.

How do I delete a version of a file?

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.

Why can’t I delete a version history in the library?

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.

Why am I getting this error while deleting huge versioning details?

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.


1 Answers

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.

like image 90
Igor Artamonov Avatar answered Sep 30 '22 01:09

Igor Artamonov