Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Apigee X - Subscription (how apigee X delete organization works in subscription)

Hello,

I have added apigee organization in subscription using terraform modules. but we had destroyed the org using terraform. When I tried to create an organization with new display name we are facing 409 "Error: Error creating Organization: googleapi: Error 409: org orgname already associated with another project". We had set up retention period default while provisioning the org and which has soft delete period for 7 days. Do I need to wait 7 days to create an organization with different name?  Does anyone know if the 7 days soft delete period includes non business days as well? Is there any way to resolve this error?
is there any restriction on deleting and creating a new organization in apigee x subscription under the same project?

Thanks in advance!

Holy.

Solved Solved
0 5 1,042
1 ACCEPTED SOLUTION

Do I need to wait 7 days to create an organization with a different name?

Apigee Organization name should match the GCP project name. You can create an organization with a different name in a different GCP project without waiting for 7 days. Default delete retention period is 7 days. It can be changed while making a delete organization call to a minimum of 24 hours.

Doc: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations/delete#deletionrete...

Does anyone know if the 7 days soft delete period includes non business days as well?

Yes, it includes non business days.

Is there any restriction on deleting and creating a new organization in Apigee x subscription under the same project?

No, there is not, but the org name should match the gcp project name. For recreating the organization, you will need to wait for the retention period.

View solution in original post

5 REPLIES 5

Do I need to wait 7 days to create an organization with a different name?

Apigee Organization name should match the GCP project name. You can create an organization with a different name in a different GCP project without waiting for 7 days. Default delete retention period is 7 days. It can be changed while making a delete organization call to a minimum of 24 hours.

Doc: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations/delete#deletionrete...

Does anyone know if the 7 days soft delete period includes non business days as well?

Yes, it includes non business days.

Is there any restriction on deleting and creating a new organization in Apigee x subscription under the same project?

No, there is not, but the org name should match the gcp project name. For recreating the organization, you will need to wait for the retention period.

I have deleted my apigee PAYG org using terraform, i tried to change the retention period to minimum, but iam getting permission denied error message. i have apigee org administrator role though.,
{
"error": {
"code": 403,
"message": "Permission denied on resource \"organizations/project-id\" (or it may not exist)",
"status": "PERMISSION_DENIED"
}
}

If I delete apigee using terraform destroy will it delete apigee org immediately ? or will it take 7 days, also can someone please tell where to pass DeletionRetention to minimum for apigee terraform

Is there any way to restore an organization via the api (or console) so that we can update the retention period? Or are we just stuck waiting for 7 days if we've already deleted? 
After deleting the organization, my apigee UI console in gcloud is broken (returning many 403 errors attempting to access the organization) now, so I can't restore it that way...

Hi @matt-deboer, thanks a lot for sharing your situation.

Since the original question here already has a marked solution and your case opens up a slightly different scenario, we’d recommend posting it as a new thread —That way, it’ll get better visibility and others with similar experiences can chime in as well.

Also, feel free to check out our Apigee articles section and join us in an upcoming Office Hours session this thursday at 4:00 PM CET, if you’d like to connect with other users and product experts directly.

Looking forward to seeing your new post so we can help you out!