Update some manual pages for LTTng-tools 2.13
[lttng-tools.git] / doc / man / lttng-clear.1.txt
... / ...
CommitLineData
1lttng-clear(1)
2==============
3:revdate: 8 April 2021
4
5NAME
6----
7lttng-clear - Clear a tracing session
8
9
10SYNOPSIS
11--------
12[verse]
13*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *clear* ['SESSION' | option:--all]
14
15
16DESCRIPTION
17-----------
18The `lttng clear` command clears one or more tracing sessions, that is,
19it deletes the contents of their tracing buffers and of all their local
20and streamed trace data.
21
22The `clear` command clears:
23
24Without any option::
25 The current tracing session.
26+
27See man:lttng-create(1) and man:lttng-set-session(1) to learn more about
28the current tracing session.
29
30With the 'SESSION' argument::
31 The existing tracing session named 'SESSION'.
32
33With the option:--all option::
34 *All* the tracing sessions of your Unix user, as listed in the
35 output of `lttng list` (see man:lttng-list(1)).
36
37If a tracing session is configured in snapshot mode (see the
38nloption:--snapshot option of the man:lttng-create(1) command), the
39`clear` command only clears the tracing buffers.
40
41For a given tracing session, if at least one rotation occurred (see
42man:lttng-rotate(1)), the `clear` command only clears its tracing
43buffers and its current trace chunk, :not: its archived trace chunks.
44
45NOTE: The nloption:--disallow-clear option and the
46`LTTNG_RELAYD_DISALLOW_CLEAR` environment variable of
47man:lttng-relayd(8) can disable remote clearing operations. If LTTng
48sends tracing data over the network for the selected tracing session(s)
49to an LTTng relay daemon configured as such, the `clear` command fails.
50
51
52include::common-cmd-options-head.txt[]
53
54
55Recording target
56~~~~~~~~~~~~~~~~
57option:-a, option:--all::
58 Clear all the tracing sessions of your Unix user, as listed in the
59 output of man:lttng-list(1), instead of the current tracing session
60 or the tracing session named 'SESSION'.
61
62
63include::common-cmd-help-options.txt[]
64
65
66include::common-cmd-footer.txt[]
67
68
69SEE ALSO
70--------
71man:lttng(1),
72man:lttng-create(1),
73man:lttng-relayd(8),
74man:lttng-rotate(1),
75man:lttng-set-session(1)
This page took 0.022737 seconds and 4 git commands to generate.