Deleting a config

This page explains how to delete a Game Servers config.

Before you begin

Before you start, we recommend you familiarize yourself with key concepts in the Game Servers Overview. Make sure you have also performed the following tasks:

Set up default gcloud settings using one of the following methods:

  • Using gcloud init, if you want to be walked through setting defaults.
  • Using gcloud config, to individually set your project ID.

Using gcloud init

  1. Run gcloud init and follow the directions:

    gcloud init

    If you are using SSH on a remote server, use the --console-only flag to prevent the command from launching a browser:

    gcloud init --console-only
  2. Follow the instructions to authorize gcloud to use your Google Cloud account.
  3. Create a new configuration or select an existing one.
  4. Choose a Google Cloud project.
  5. Choose a default Compute Engine zone.

Using gcloud config

  • Set your default project ID:
    gcloud config set project [PROJECT_ID]
  • Update gcloud to the latest version:
    gcloud components update

Deleting a config

You can delete a Game Servers config using the gcloud command-line tool.

To delete a config:

  1. Run the following command and replace the placeholder values, such as configID and deploymentID, with appropriate values:

    gcloud beta game servers configs delete configID --deployment=deploymentID
    

The variable placeholders correspond to the following descriptions:

  • configID is the unique identifier that you specified for this config.
  • deploymentID is the unique identifier that you specified for the parent deployment.

Verifying that your config has been deleted

Verify that you successfully deleted the config by listing your configs using the gcloud command-line tool.

To list all configs, run the following command:

gcloud beta game servers configs list

To list all configs in a deployment, run the following command and replace deploymentID with the parent deployment.

gcloud beta game servers configs list --deployment=deploymentID

Your deleted config no longer appears in the output of the command.

What's next

Learn about key concepts in the Game Servers overview.