Fortinet white logo
Fortinet white logo

data-purge

data-purge

Syntax

data-purge <option>

Option

Description

-a

Purge all the data in the database including deployment settings, events, incidents, and alerts.

-d

Purge the detection results from database, including events, incidents, and alerts.

-t

Purge campaigns that happened before a specific time (MM/DD/YYYY-HH:MM:SS). For example, to purge data by time use: data-purge -d -t04/19/2021-12:15:35

You do not need to provide a timezone. FortiDeceptor will use the timezone configured on your device. If no timezone is set, FortiDeceptor will use UTC by default.

For example, if the login user device is set to PDT timezone, running data-purge -d -t04/19/2021-12:15:35 will purge the corresponding data before 04/19/2021-12:15:35 PDT. If the login user device is not set to a specific timezone, this command will purge corresponding data before 04/19/2021-19:15:35 UTC.

-k<N>

Automatically purges data older than the specified number of days where N represents 1-365 days.

For example, to purge data older than 10 days : data-purge -k10

This option cannot be used with other options.

-s

Show the configuration for automatic purge.

data-purge

data-purge

Syntax

data-purge <option>

Option

Description

-a

Purge all the data in the database including deployment settings, events, incidents, and alerts.

-d

Purge the detection results from database, including events, incidents, and alerts.

-t

Purge campaigns that happened before a specific time (MM/DD/YYYY-HH:MM:SS). For example, to purge data by time use: data-purge -d -t04/19/2021-12:15:35

You do not need to provide a timezone. FortiDeceptor will use the timezone configured on your device. If no timezone is set, FortiDeceptor will use UTC by default.

For example, if the login user device is set to PDT timezone, running data-purge -d -t04/19/2021-12:15:35 will purge the corresponding data before 04/19/2021-12:15:35 PDT. If the login user device is not set to a specific timezone, this command will purge corresponding data before 04/19/2021-19:15:35 UTC.

-k<N>

Automatically purges data older than the specified number of days where N represents 1-365 days.

For example, to purge data older than 10 days : data-purge -k10

This option cannot be used with other options.

-s

Show the configuration for automatic purge.