diff --git a/alicloud/resource_alicloud_mongodb_instance.go b/alicloud/resource_alicloud_mongodb_instance.go index 6df8480e4113..9feae0b1e3b8 100644 --- a/alicloud/resource_alicloud_mongodb_instance.go +++ b/alicloud/resource_alicloud_mongodb_instance.go @@ -1276,7 +1276,7 @@ func resourceAliCloudMongoDBInstanceDelete(d *schema.ResourceData, meta interfac err = resource.Retry(client.GetRetryTimeout(d.Timeout(schema.TimeoutDelete)), func() *resource.RetryError { response, err = conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2015-12-01"), StringPointer("AK"), nil, request, &runtime) if err != nil { - if NeedRetry(err) { + if NeedRetry(err) || IsExpectedErrors(err, []string{"OperationDenied.DBInstanceStatus"}) { wait() return resource.RetryableError(err) }