7 lttng-clear - Clear a tracing session
13 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *clear* ['SESSION' | option:--all]
18 The `lttng clear` command clears one or more tracing sessions, that is,
19 it deletes the contents of their tracing buffers and of all their local
20 and streamed trace data.
22 The `clear` command clears:
25 The current tracing session.
27 See man:lttng-create(1) and man:lttng-set-session(1) to learn more about
28 the current tracing session.
30 With the 'SESSION' argument::
31 The existing tracing session named 'SESSION'.
33 With 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)).
37 If a tracing session is configured in snapshot mode (see the
38 nloption:--snapshot option of the man:lttng-create(1) command), the
39 `clear` command only clears the tracing buffers.
41 For a given tracing session, if at least one rotation occurred (see
42 man:lttng-rotate(1)), the `clear` command only clears its tracing
43 buffers and its current trace chunk, :not: its archived trace chunks.
45 NOTE: The nloption:--disallow-clear option and the
46 `LTTNG_RELAYD_DISALLOW_CLEAR` environment variable of
47 man:lttng-relayd(8) can disable remote clearing operations. If LTTng
48 sends tracing data over the network for the selected tracing session(s)
49 to an LTTng relay daemon configured as such, the `clear` command fails.
52 include::common-cmd-options-head.txt[]
57 option:-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'.
63 include::common-cmd-help-options.txt[]
66 include::common-cmd-footer.txt[]
75 man:lttng-set-session(1)