Skip to content

Commit b788e09

Browse files
Fix uninstall warning about current directory (#1368) (#1370)
* Fix uninstall warning about current dir * fixup (cherry picked from commit 4185605) Co-authored-by: David Kilfoyle <[email protected]>
1 parent cd3de46 commit b788e09

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
@@ -1105,16 +1105,19 @@ to remove files.
11051105

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

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

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)