Rename "tracing session" -> "recording session"
[lttng-tools.git] / doc / man / lttng-destroy.1.txt
CommitLineData
7bf169bd 1lttng-destroy(1)
4605890e 2================
aaae4813 3:revdate: 14 June 2021
7bf169bd
PP
4
5
6NAME
7----
aaae4813 8lttng-destroy - Destroy LTTng recording sessions
7bf169bd
PP
9
10
11SYNOPSIS
12--------
13[verse]
d0d2c3e4 14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *destroy* [option:--no-wait] [option:--all | 'SESSION']
7bf169bd
PP
15
16
17DESCRIPTION
18-----------
188419c4 19The `lttng destroy` command destroys:
7bf169bd 20
484b2a0c 21With the 'SESSION' argument::
aaae4813 22 The recording session named 'SESSION'.
7bf169bd 23
484b2a0c 24With the option:--all option::
aaae4813
PP
25 *All* the recording sessions of the connected session daemon for
26 your Unix user, or for all users if your Unix user is `root`, as
27 listed in the output of `lttng list` (see man:lttng-list(1)).
188419c4
PP
28+
29See the ``Session daemon connection'' section of man:lttng(1) to learn
30how a user application connects to a session daemon.
7bf169bd 31
484b2a0c 32Otherwise::
aaae4813
PP
33 The current recording session (see man:lttng-concepts(7) to learn
34 more about the current recording session).
484b2a0c 35+
aaae4813 36In that case, the current recording session becomes nonexistent.
7bf169bd 37
aaae4813 38See man:lttng-concepts(7) to learn more about recording sessions.
188419c4 39
aaae4813 40``Destroying'' a recording session means freeing the resources which the
188419c4
PP
41LTTng daemons and tracers acquired for it, also making sure to flush all
42the recorded trace data to either the local file system or the connected
aaae4813 43LTTng relay daemon (see man:lttng-relayd(8)), depending on the recording
188419c4
PP
44session mode.
45
aaae4813
PP
46The `destroy` command stops any recording activity within the selected
47recording session(s). By default, the command runs an implicit
48man:lttng-stop(1) command to ensure that the trace data of the recording
484b2a0c
PP
49session(s) is valid before it exits. Make the command exit immediately
50with the option:--no-wait option. In this case, however, the traces(s)
51might not be valid when the command exits, and there's no way to know
188419c4 52when it/they become valid.
484b2a0c 53
aaae4813 54If, for a recording session{nbsp}__RS__ to destroy with the `destroy`
484b2a0c
PP
55command, the following statements are true:
56
188419c4 57* You don't specify the option:--no-wait option.
484b2a0c 58
188419c4 59* LTTng archived the current trace chunk (see man:lttng-concepts(7))
aaae4813 60 of{nbsp}__RS__ at least once during its lifetime.
484b2a0c 61
aaae4813 62Then all the subdirectories of the output directory of{nbsp}__RS__
484b2a0c
PP
63(local or remote) are considered trace chunk archives once the `destroy`
64command exits. In other words, it's safe to read them, modify them, move
65them, or remove then.
980bb5fd 66
7d259724 67See the ``<<examples,EXAMPLES>>'' section below for usage examples.
70057e1f 68
7bf169bd 69
55e06994 70include::common-lttng-cmd-options-head.txt[]
7bf169bd
PP
71
72
73option:-a, option:--all::
aaae4813
PP
74 Destroy all the recording sessions of your Unix user, or of all
75 users if your Unix user is `root`, as listed in the output of
76 man:lttng-list(1), instead of the current recording session or the
77 recording session named 'SESSION'.
7bf169bd 78
d0d2c3e4 79option:-n, option:--no-wait::
aaae4813 80 Do :not: ensure that the trace data of the recording session(s) to
484b2a0c 81 destroy is valid before exiting.
d0d2c3e4 82
7bf169bd 83
55e06994 84include::common-lttng-cmd-help-options.txt[]
7bf169bd
PP
85
86
55e06994
PP
87include::common-lttng-cmd-after-options.txt[]
88
89
70057e1f
PP
90[[examples]]
91EXAMPLES
92--------
aaae4813 93.Destroy the current recording session.
70057e1f
PP
94====
95[role="term"]
96----
97$ lttng destroy
98----
99====
100
aaae4813 101.Destroy the current recording session without waiting for completion.
70057e1f
PP
102====
103See the option:--no-wait option.
104
105[role="term"]
106----
107$ lttng destroy --no-wait
108----
109====
110
aaae4813 111.Destroy a specific recording session.
70057e1f
PP
112====
113[role="term"]
114----
115$ lttng destroy my-session
116----
117====
118
aaae4813 119.Destroy all recording sessions.
70057e1f
PP
120====
121See the option:--all option.
122
123[role="term"]
124----
125$ lttng destroy --all
126----
127====
128
129
55e06994 130include::common-footer.txt[]
7bf169bd
PP
131
132
133SEE ALSO
134--------
484b2a0c 135man:lttng(1),
7c1a4458 136man:lttng-create(1),
21b35b3a
PP
137man:lttng-list(1),
138man:lttng-concepts(7)
This page took 0.053597 seconds and 5 git commands to generate.