---
name: "journal_wipe"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/journal_wipe"
---

# journal\_wipe(9)

Wipe journal contents

## NAME

journal\_wipe - Wipe journal contents

## SYNOPSIS

**int journal\_wipe(journal\_t \*** *journal***, int** *write***);**

## ARGUMENTS

*journal*

Journal to act on.

*write*

flag (see below)

## DESCRIPTION

Wipe out all of the contents of a journal, safely. This will produce a warning if the journal contains any valid recovery information. Must be called between journal\_init\_\*() and **journal\_load**.

If 'write' is non-zero, then we wipe out the journal on disk; otherwise we merely suppress recovery.

## AUTHORS

**Roger Gammans** \<rgammans@computer-surgery.co.uk\>

Author.

**Stephen Tweedie** \<sct@redhat.com\>

Author.

## COPYRIGHT
