FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
AmirZ
Staff
Staff
Article Id 394316
Description

This article describes how to delete FortiManager CLI scripts using the CLI.

In some versions of FortiManagers, users can delete CLI templates. In some cases, FortiManager returns an error, or the user may receive the message 'deleted successfully' while the script is still present; this typically occurs due to bugs. 

Scope

FortiManager.

Solution

Use the FortiManager CLI to delete the template.

 

Step 1: Run the command first to get a list of all CLI scripts:

 

execute fmscript list

 
 

pic_1.JPG

 

 

Step 2: Use the script ID from the above command to delete the script

 

execute fmscript delete <script ID>

 

pic_2.JPG

 

 

Contributors