Script - Clear Reports Data: Difference between revisions

From Edge Threat Management Wiki - Arista
Jump to navigationJump to search
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
This script will delete all reports data currently stored in the database.
This script will delete all reports data currently stored in the database.


This can be useful if you have decreased the amount of data retention in reports and want to immediately see the free disk space available to the OS (otherwise it can take a long time for postgres to give that space back to the O/S)
This can be useful if you have decreased the amount of data retention in reports and want to immediately see the free disk space available to the OS (otherwise it can take a long time for postgres to give that space back to the OS).


'''WARNING:''' All reports data will be lost.
'''WARNING:''' All reports data will be lost.
Line 12: Line 12:


In version 16.3+, please use the 'Delete All Reports Data' button found in '''Apps > Reports > Data''' to clear the Reports database.
In version 16.3+, please use the 'Delete All Reports Data' button found in '''Apps > Reports > Data''' to clear the Reports database.
[[File:Delete_Reports_Data_button.png]]


= How to run =
= How to run the CLI script =


<code>
<code>
curl -k https://downloads.untangle.com/public/patches/generic/dump_reports_data.sh | dash
curl -k https://downloads.untangle.com/public/patches/generic/dump_reports_data.sh | dash
</code>
</code>

Latest revision as of 17:08, 6 December 2022

What it is

This script will delete all reports data currently stored in the database.

This can be useful if you have decreased the amount of data retention in reports and want to immediately see the free disk space available to the OS (otherwise it can take a long time for postgres to give that space back to the OS).

WARNING: All reports data will be lost.

IMPORTANT: DEPRECATED

This script is deprecated as of version 16.3. It can be used on older versions, but will not function on any version 16.3 or higher.

In version 16.3+, please use the 'Delete All Reports Data' button found in Apps > Reports > Data to clear the Reports database.

How to run the CLI script

curl -k https://downloads.untangle.com/public/patches/generic/dump_reports_data.sh | dash