이 문서에서는 예약을 삭제하는 방법을 설명합니다. 미래용 예약 요청을 삭제하는 방법을 알아보려면 미래용 예약 요청 취소 또는 삭제를 참조하세요.
더 이상 필요하지 않은 예약된 리소스에 대한 비용이 청구되지 않도록 예약을 삭제하세요.
제한사항
예약을 삭제하기 전에 다음 사항을 고려하세요.
공유 예약은 해당 예약을 만든 프로젝트에서만 삭제할 수 있습니다.
Compute Engine 인스턴스에서 사용하지 않는 경우에만 특정 타겟팅 예약을 삭제할 수 있습니다. 예약을 사용하는 인스턴스가 있는 경우 예약을 삭제하기 전에 다음 중 하나를 실행합니다.
미래용 예약의 자동 생성된 예약은 예약 기간이 종료된 후에만 삭제할 수 있습니다.
약정에 연결된 예약을 삭제하려면 먼저 예약을 교체하여 연결을 해제해야 합니다.
시작하기 전에
-
아직 인증을 설정하지 않았다면 설정합니다.
인증은 Google Cloud 서비스 및 API에 액세스하기 위해 ID를 확인하는 프로세스입니다.
로컬 개발 환경에서 코드 또는 샘플을 실행하려면 다음 옵션 중 하나를 선택하여 Compute Engine에 인증하면 됩니다.
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloud
-
Install the Google Cloud CLI, then initialize it by running the following command:
gcloud init
- Set a default region and zone.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
-
If you're using a local shell, then create local authentication credentials for your user account:
gcloud auth application-default login
You don't need to do this if you're using Cloud Shell.
Google Cloud 콘솔에서 예약 페이지로 이동합니다.
온디맨드 예약 탭(기본값)에서 삭제할 예약을 선택합니다.
삭제를 클릭합니다.
삭제를 클릭하여 확인합니다.
RESERVATION_NAME
: 예약 이름.ZONE
: 예약이 있는 영역입니다.PROJECT_ID
: 예약을 만든 프로젝트의 ID입니다.ZONE
: 예약이 있는 영역입니다.RESERVATION_NAME
: 예약 이름.- 예약 확인 방법 알아보기
Go
로컬 개발 환경에서 이 페이지의 Go 샘플을 사용하려면 gcloud CLI를 설치 및 초기화한 다음 사용자 인증 정보로 애플리케이션 기본 사용자 인증 정보를 설정하세요.
자세한 내용은 다음을 참조하세요: Set up authentication for a local development environment.
Java
로컬 개발 환경에서 이 페이지의 Java 샘플을 사용하려면 gcloud CLI를 설치 및 초기화한 다음 사용자 인증 정보로 애플리케이션 기본 사용자 인증 정보를 설정하세요.
자세한 내용은 다음을 참조하세요: Set up authentication for a local development environment.
Node.js
로컬 개발 환경에서 이 페이지의 Node.js 샘플을 사용하려면 gcloud CLI를 설치 및 초기화한 다음 사용자 인증 정보로 애플리케이션 기본 사용자 인증 정보를 설정하세요.
자세한 내용은 다음을 참조하세요: Set up authentication for a local development environment.
Python
로컬 개발 환경에서 이 페이지의 Python 샘플을 사용하려면 gcloud CLI를 설치 및 초기화한 다음 사용자 인증 정보로 애플리케이션 기본 사용자 인증 정보를 설정하세요.
자세한 내용은 다음을 참조하세요: Set up authentication for a local development environment.
REST
로컬 개발 환경에서 이 페이지의 REST API 샘플을 사용하려면 gcloud CLI에 제공한 사용자 인증 정보를 사용합니다.
Install the Google Cloud CLI, then initialize it by running the following command:
gcloud init
자세한 내용은 Google Cloud 인증 문서의 REST 사용을 위한 인증을 참조하세요.
필요한 역할
예약을 삭제하는 데 필요한 권한을 얻으려면 관리자에게 프로젝트에 대한 Compute 관리자(
roles/compute.admin
) IAM 역할을 부여해 달라고 요청하세요. 역할 부여에 대한 자세한 내용은 프로젝트, 폴더, 조직에 대한 액세스 관리를 참조하세요.이 사전 정의된 역할에는 예약을 삭제하는 데 필요한
compute.reservations.delete
권한이 포함되어 있습니다.커스텀 역할이나 다른 사전 정의된 역할을 사용하여 이 권한을 부여받을 수도 있습니다.
예약 삭제
일치하는 컴퓨팅 인스턴스에서 자동으로 사용할 수 있는 예약을 삭제하면 삭제된 예약을 사용하는 인스턴스는 계속 실행됩니다. 해당 인스턴스에 대한 요금이 계속 청구됩니다.
단일 예약을 삭제하거나 여러 예약을 한 번에 삭제할 수 있습니다. 예약이 여러 개인 경우 Google Cloud 콘솔을 사용하세요. 단일 예약의 경우 다음 옵션 중 하나를 선택합니다.
콘솔
gcloud
예약을 삭제하려면
gcloud compute reservations delete
명령어를 사용합니다.gcloud compute reservations delete RESERVATION_NAME \ --zone=ZONE
다음을 바꿉니다.
Go
자바
Node.js
Python
REST
예약을 삭제하려면
DELETE
요청을reservation.delete
메서드로 보냅니다.DELETE https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/zones/ZONE/reservations/RESERVATION_NAME
다음을 바꿉니다.
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-27(UTC)
-