Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.15] Fix uninstall warning about current directory (backport #1368) #1370

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/en/ingest-management/commands.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1105,16 +1105,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 a directory outside of 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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 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:

[source,shell]
----
C:\"Program Files"\Elastic\Agent\elastic-agent.exe uninstall
----

====

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