﻿---
title: Edit or delete an Elastic Agent integration policy
description: Edit an Elastic Agent integration policy in Fleet to update its settings or the agent policies it's added to, or delete an integration policy that you no longer need.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9055/reference/fleet/edit-delete-integration-policy
products:
  - Elastic Agent
  - Elastic Documentation
  - Fleet
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Edit or delete an Elastic Agent integration policy
Edit an integration policy to update its configuration settings or the Elastic Agent policies that it's added to, or delete an integration policy that you no longer need. Fleet distributes saved changes to all Elastic Agents enrolled in the affected agent policies.

## Before you begin

To edit or delete an integration policy, your role needs the `All` privilege for **Fleet** and **Integrations**.
<applies-to>Elastic Cloud Serverless: Generally available</applies-to> <applies-to>Elastic Stack: Generally available since 9.1</applies-to> If you [customize sub-feature privileges for Fleet](/elastic/docs-content/pull/9055/reference/fleet/fleet-roles-privileges#fleet-roles-and-privileges-sub-features), the role needs the `All` privilege for **Agent policies**.

## Edit an integration policy

1. In Kibana, find **Integrations** in the navigation menu or use the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9055/explore-analyze/find-and-organize/find-apps-and-objects).
2. On the **Installed integrations** tab, select the integration.
3. On the **Integration policies** tab, find the integration policy that you want to edit. From its **Actions** menu, select **Edit integration**.
4. On the **Edit <integration>** page, update the configuration settings and the Elastic Agent policies that the integration policy is added to.
   If you clear the **Agent policies** field, the integration policy is removed from all the Elastic Agent policies that it was added to.
5. Click **Save integration**.

Fleet distributes the saved changes to all Elastic Agents enrolled in the affected agent policies.
To find integration policies that aren't added to any Elastic Agent policy, check the **Agent policies** column on the **Integration policies** tab. These integration policies are labeled `No agent policies`.

## Delete an integration policy

Deleting an integration policy can't be undone. The Elastic Agents enrolled in the affected agent policies stop collecting data for that integration policy. To collect the data again, [add the integration](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9055/reference/fleet/add-integration-to-policy) again.
1. In Kibana, find **Integrations** in the navigation menu or use the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9055/explore-analyze/find-and-organize/find-apps-and-objects).
2. On the **Installed integrations** tab, select the integration.
3. On the **Integration policies** tab, find the integration policy that you want to delete. From its **Actions** menu, select **Delete integration**.
4. In the confirmation dialog, click **Delete integration**.