Skip to content

Commit 4185605

Browse files
authored
Fix uninstall warning about current directory (#1368)
* Fix uninstall warning about current dir * fixup
1 parent b327787 commit 4185605

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

docs/en/ingest-management/commands.asciidoc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,16 +1106,19 @@ to remove files.
11061106

11071107
[IMPORTANT]
11081108
====
1109-
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.
1109+
Be sure to run the `uninstall` command from a directory outside of where {agent} is installed.
11101110
1111-
--
1112-
1113-
include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/uninstall-widget.asciidoc[]
1111+
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:
11141112
1115-
--
1113+
[source,shell]
1114+
----
1115+
C:\"Program Files"\Elastic\Agent\elastic-agent.exe uninstall
1116+
----
11161117
11171118
====
11181119

1120+
include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/uninstall-widget.asciidoc[]
1121+
11191122
[discrete]
11201123
=== Synopsis
11211124

docs/en/ingest-management/elastic-agent/uninstall-elastic-agent.asciidoc

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,18 @@
77
To uninstall {agent}, run the `uninstall` command from the directory where
88
{agent} is running.
99

10-
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.
10+
[IMPORTANT]
11+
====
12+
Be sure to run the `uninstall` command from a directory outside of where {agent} is installed.
13+
14+
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:
15+
16+
[source,shell]
17+
----
18+
C:\"Program Files"\Elastic\Agent\elastic-agent.exe uninstall
19+
----
20+
21+
====
1122

1223
--
1324
include::{ingest-docs-root}/docs/en/ingest-management/tab-widgets/uninstall-widget.asciidoc[]

0 commit comments

Comments
 (0)