FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
vbarrios
Staff
Staff
Article Id 366585
Description

This article describes a simple way to remove stuck SSIDs on FortiGate config that cannot be deleted giving the error:

 

VAP interfaces can only be deleted from the vap interface table.

command_cli_delete:6988 delete table entry Guest-Wifi unset oper error ret=-160
Command fail. Return code -160

Scope FortiGate.
Solution
  1. Delete any existing reference associated with the SSID under Network -> Interface section. Remove the interface from the policy. Delete Address, DHCP server, and system interface. To delete from the system interface: Technical Tip: Unable to delete SSID.

 

SSID-usage.jpg

 

  1. Download a config backup on the FortiGate: Technical Tip: How to download FortiGate configuration file & Debug log from GUI
  2. Open the config file in a text application, locate and remove the SSIDs interface under the 'config system interface' section, and restore the config file in the FortiGate.