Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Apache Spark™
  • Getting started
    • All guides
      • Creating a workspace
      • Updating a workspace
      • Delete the environments.
  • Access management
  • Pricing policy
  • Yandex Monitoring metrics
  • Audit Trails events
  • Terraform reference
  • Release notes
  1. Step-by-step guides
  2. Environments
  3. Delete the environments.

Deleting an environment

Written by
Yandex Cloud
Updated at September 9, 2026
View in Markdown

You can delete an environment if you no longer need it.

Management console
gRPC API
  1. In the management console, select the folder where you want to delete an environment.
  2. Navigate to Managed Service for Apache Spark™.
  3. In the left-hand panel, select  Environments.
  4. Click next to the environment and select Delete.
  5. In the window that opens, confirm the deletion and click Delete.
  1. Get an IAM token for API authentication and put it into an environment variable:

    export IAM_TOKEN="<IAM_token>"
    
  2. Clone the cloudapi repository:

    cd ~/ && git clone --depth=1 https://github.com/yandex-cloud/cloudapi
    

    Below, we assume that the repository contents reside in the ~/cloudapi/ directory.

  3. Call the EnvironmentService/Delete method to delete the environment:

    grpcurl \
      -format json \
      -import-path ~/cloudapi/ \
      -import-path ~/cloudapi/third_party/googleapis/ \
      -proto ~/cloudapi/yandex/cloud/spark/v1/environment/environment_service.proto \
      -rpc-header "Authorization: Bearer $IAM_TOKEN" \
      -d '{
             "environment_id": "<environment_ID>"
         }' \
      spark.api.cloud.yandex.net:443 \
      yandex.cloud.spark.v1.environment.EnvironmentService.Delete
    

    To get your environment ID, call the EnvironmentService/List method.

  4. Check the server response to make sure your request was successful.

Was the article helpful?

Previous
Updating a workspace
Next
Spark jobs
© 2026 Direct Cursus Technology L.L.C.