Skip to main content
ShazzyS
Staff
Staff
July 16, 2026

Technical Tip: How to sanitize and securely wipe a FortiGate

  • July 16, 2026
  • 0 replies
  • 234 views

Description

This article describes the steps required to sanitize or securely wipe the configuration from a FortiGate device before decommissioning it and removing it from the network.

Scope

FortiGate.

Solution

  1. Perform a factory reset from the CLI.


execute factoryreset 


1c27ab71.jpg


  1. Perform a format of the hard disk from the CLI (for a device that comes with a hard disk).


execute erase-disk <diskname>


494aeff5.png


  • The 'How many times do you wish to overwrite the media?' prompt will appear: enter a number of times to overwrite the hard disk with random data in order to properly sanitize the disk by making previous data unreadable. In this example, the number used is 1.

  • This process performs a low-level format and overwrites each block with random data.


See the CLI reference: execute erase-disk.

  1. Format the boot device from the CLI configuration and reload a new firmware image using TFTP. Refer to Technical Tip: Formatting and loading FortiGate firmware image using TFTP.

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!