Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • All guides
    • Using functions to get an IAM token for a service account
    • Connecting to managed databases from functions
        • Viewing scaling settings
        • Adding scaling settings
        • Deleting scaling settings
      • Adding environment variables
      • Specifying a cloud network
      • Transferring Yandex Lockbox secrets
      • Allocating memory for the /tmp directory
      • Viewing monitoring charts
      • Migration to the ru-central1-d availability zone
      • Deleting a function version
      • Deleting a function
    • Viewing operations with service resources
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing a function
  3. Scaling a function
  4. Deleting scaling settings

Deleting function scaling settings

Written by
Yandex Cloud
Updated at September 10, 2025
Management console
CLI
Terraform
API

To delete any scaling setting other than the number of calls processed concurrently by a single function instance (concurrency):

  1. In the management console, select the folder containing the function.
  2. Select Cloud Functions.
  3. Select a function.
  4. Under Version history, hover over the tag of the function version (e.g., $latest) you want to delete scaling settings for.
  5. In the pop-up window, click Scaling settings.
  6. To delete a scaling setting, set it equal to zero.
  7. Click Save.

To delete any scaling setting other than the number of calls processed concurrently by a single function instance (concurrency), run this command:

yc serverless function remove-scaling-policy \
  --id=<function_ID> \
  --tag=\$latest

Where:

  • --id: Function ID. To find out the ID, request a list of functions.
  • --tag: Function version tag.

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the relevant documentation on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To delete any scaling setting other than the number of calls processed concurrently by a single function instance (concurrency):

  1. In the configuration file, describe the parameters of resources you want to create:

    • yandex_function_scaling_policy: Description of function scaling settings.
      • function_id: Function ID.
      • policy: Scaling settings:
        • policy.0.tag: Function version tag.
        • policy.0.zone_instances_limit: Number of function instances. Set the 0 value.
        • policy.0.zone_requests_limit: Number of calls in progress. Set the 0 value.

    Here is an example of the configuration file structure:

    resource "yandex_function_scaling_policy" "my_scaling_policy" {
        function_id = "are1samplefu********"
        policy {
            tag                  = "$latest"
            zone_instances_limit = 0
            zone_requests_limit  = 0
        }
    }
    

    For more information about yandex_function_scaling_policy properties, see this Terraform article.

  2. Check the configuration using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  3. Run this command:

    terraform plan
    

    You will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.

  4. Apply the changes:

    terraform apply
    
  5. Type yes and press Enter to confirm the changes.

You can check the deletion of the scaling settings using the management console or this CLI command:

yc serverless function list-scaling-policies <function_name_or_ID>

To delete any function scaling setting other than the number of calls processed concurrently by a single function instance (concurrency), use the removeScalingPolicy REST API method for the Function resource or the FunctionService/RemoveScalingPolicy gRPC API call.

To delete the number of calls processed concurrently by a single function instance (concurrency), create a function version without specifying this parameter.

See alsoSee also

  • Scaling a function

Was the article helpful?

Previous
Adding scaling settings
Next
Adding environment variables
© 2025 Direct Cursus Technology L.L.C.