7 lttng-clear - Clear an LTTng tracing session
13 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *clear* [option:--all | 'SESSION']
18 The `lttng clear` command clears one or more tracing sessions.
20 If no options are specified, the current tracing session is cleared
21 (see man:lttng-create(1) for more information about the current
24 If 'SESSION' is specified, the existing tracing session named 'SESSION'
27 If the option:--all option is used, *all* the tracing sessions, as listed
28 in the output of `lttng list`, are cleared.
30 Clearing a tracing session removes all tracing data from the tracing buffers and
31 remove all local or streamed trace data.
33 If a session is configured in snapshot mode only the tracing buffers are cleared.
35 If at least one rotation occurred, only the tracing buffers and the current
36 trace chunk is cleared. Previous trace chunks are not cleared.
38 include::common-cmd-options-head.txt[]
41 option:-a, option:--all::
42 Clear all tracing sessions.
44 include::common-cmd-help-options.txt[]
47 include::common-cmd-footer.txt[]
53 man:lttng-set-session(1),