Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • 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
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Monium
  • Getting started
  • Overview
    • Overview
    • OTLP in Monium
    • Creating and configuring a project
      • Overview
      • Installing and updating
      • Starting and stopping
      • Agent best practices
      • Possible errors
      • Deletion
  • Access management
  • Pricing policy
  • Terraform reference
  • Release notes
  1. Data delivery
  2. Unified Agent
  3. Deletion

Deleting Yandex Unified Agent

Written by
Yandex Cloud
Updated at October 29, 2025
View in Markdown

The way you delete Unified Agent depends on the way it was installed.

Docker image
deb package
Binary file
When creating a VM
  1. View the Unified Agent container ID:

    sudo docker ps
    
  2. Stop the container:

    sudo docker stop <container_ID>
    
  3. Delete the container:

    sudo docker rm <container_ID>
    
  1. Stop Unified Agent:

    sudo service unified-agent stop
    
  2. View the deb package name:

    sudo dpkg -S /etc/yandex/unified_agent
    
  3. Delete the deb package:

    sudo apt remove yandex-unified-agent
    
  1. View the Unified Agent process number and the location of the unified_agent file and *.yml configuration file:

    ps aux | grep unified_agent
    

    Result:

    root 1068 0.0 2.1 2314804 43540 ? Ssl 08:33 0:03 /bin/unified_agent --config /etc/yc/unified_agent/config.yml
    yc-sa-a+ 4124 0.0 0.1 6612 2272 pts/2 S+ 12:34 0:00 grep --color=auto unified_agent
    

    In this example, the process number is 1068.

  2. Stop the Unified Agent process:

     sudo kill <process_number>
    
  3. Delete the binary file:

    sudo rm -f /usr/bin/unified_agent
    
  4. Delete the configuration file:

    sudo rm -f /etc/yc/unified_agent/config.yml
    

If Unified Agent was installed this way, the unified_agent binary file and the config.yml default configuration file are copied to the VM. Therefore, Unified Agent is deleted the same way as the binary file.

Information about the installed Unified Agent is stored in the VM metadata. When deleting Unified Agent, metadata is not updating automatically; however, you can do it manually.

Note

Information in metadata does not affect Unified Agent's operation, so updating is optional.

To delete information about Unified Agent from metadata:

  1. Get an IAM token for your VM's service account.

  2. Make sure you have installed cURL.

  3. Send an API request to update metadata:

    curl \
      --request PATCH \
      --header "Authorization: Bearer <IAM_token>" \
      --data '{"updateMask": "metadata", "metadata": {"install-unified-agent": "0" },}' \
      https://compute.api.cloud.yandex.net/compute/v1/instances/<VM_ID>
    
  4. View metadata:

    1. In the management console, go to Compute Cloud.

    2. In the left-hand panel, select Virtual machines.

    3. Select the VM and navigate to the Overview tab.

    4. Make sure the Agent for delivering metrics parameter is now set to no under **Monitoring**.

Was the article helpful?

Previous
Possible errors
Next
Getting started with application metrics
© 2026 Direct Cursus Technology L.L.C.