From 662a5f8f5859d3cfb58b38a1190dc5ac64850e49 Mon Sep 17 00:00:00 2001 From: David Kilfoyle Date: Mon, 7 Oct 2024 14:04:15 -0400 Subject: [PATCH 1/2] Fix uninstall warning about current dir --- docs/en/ingest-management/commands.asciidoc | 13 ++++++++----- .../elastic-agent/uninstall-elastic-agent.asciidoc | 13 ++++++++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/docs/en/ingest-management/commands.asciidoc b/docs/en/ingest-management/commands.asciidoc index 6888adf82..8bfe994e0 100644 --- a/docs/en/ingest-management/commands.asciidoc +++ b/docs/en/ingest-management/commands.asciidoc @@ -1106,16 +1106,19 @@ to remove files. [IMPORTANT] ==== -Be sure to run the `uninstall` command from the directory where {agent} is installed and not from the directory where you previously ran the `install` command. +Be sure to run the `uninstall` command from the directory outside where {agent} is installed. --- - -include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/uninstall-widget.asciidoc[] +For example, on a Windows system the install location is `C:\Program Files\Elastic\Agent`. Run the uninstall command from `C:\Program Files\Elastic` or `\tmp`, or even your default home directory: --- +[source,shell] +---- +C:\"Program Files"\Elastic\Agent\elastic-agent.exe uninstall +---- ==== +include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/uninstall-widget.asciidoc[] + [discrete] === Synopsis diff --git a/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc b/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc index 0925851ad..02f78c597 100644 --- a/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc +++ b/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc @@ -7,7 +7,18 @@ To uninstall {agent}, run the `uninstall` command from the directory where {agent} is running. -IMPORTANT: Be sure to run the `uninstall` command from the directory where {agent} is running, as shown in the example below, and not from the directory where you previously ran the `install` command. Running the command from the wrong directory can leave the agent in an inconsistent state. +[IMPORTANT] +==== +Be sure to run the `uninstall` command from the directory outside where {agent} is installed. + +For example, on a Windows system the install location is `C:\Program Files\Elastic\Agent`. Run the uninstall command from `C:\Program Files\Elastic` or `\tmp`, or even your default home directory: + +[source,shell] +---- +C:\"Program Files"\Elastic\Agent\elastic-agent.exe uninstall +---- + +==== -- include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/uninstall-widget.asciidoc[] From 4792e2b8c27eeb7c4a70f7acd3a4e15bf479deb1 Mon Sep 17 00:00:00 2001 From: David Kilfoyle Date: Mon, 7 Oct 2024 14:13:02 -0400 Subject: [PATCH 2/2] fixup --- docs/en/ingest-management/commands.asciidoc | 2 +- .../elastic-agent/uninstall-elastic-agent.asciidoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/ingest-management/commands.asciidoc b/docs/en/ingest-management/commands.asciidoc index 8bfe994e0..482c549ab 100644 --- a/docs/en/ingest-management/commands.asciidoc +++ b/docs/en/ingest-management/commands.asciidoc @@ -1106,7 +1106,7 @@ to remove files. [IMPORTANT] ==== -Be sure to run the `uninstall` command from the directory outside where {agent} is installed. +Be sure to run the `uninstall` command from a directory outside of where {agent} is installed. For example, on a Windows system the install location is `C:\Program Files\Elastic\Agent`. Run the uninstall command from `C:\Program Files\Elastic` or `\tmp`, or even your default home directory: diff --git a/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc b/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc index 02f78c597..38510dc16 100644 --- a/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc +++ b/docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc @@ -9,7 +9,7 @@ To uninstall {agent}, run the `uninstall` command from the directory where [IMPORTANT] ==== -Be sure to run the `uninstall` command from the directory outside where {agent} is installed. +Be sure to run the `uninstall` command from a directory outside of where {agent} is installed. For example, on a Windows system the install location is `C:\Program Files\Elastic\Agent`. Run the uninstall command from `C:\Program Files\Elastic` or `\tmp`, or even your default home directory: