Skip to main content
caunon
Staff
Staff
November 22, 2011

Technical Note : How to delete an object name which contains spaces

  • November 22, 2011
  • 0 replies
  • 4456 views
Description This article describes how to delete entries that contain spaces in the name.
Scope FortiGate.
Solution

When configuring object names that include spaces, it is not possible to delete them in the CLI by adding the name with the spaces as it is.

 

The example below shows a web filter profile with the name 'TEST WEB FILTER SPACE':

 

config webfilter profile

    delete ?

        *name Profile name.

        TEST WEB FILTER SPACE

        default

        monitor-all

        sniffer-profile

        wifi-default

 

Upon trying to delete the entry by just copying and pasting it after 'delete', the following message will appear:

 

config webfilter profile

    delete TEST WEB FILTER SPACE

    command parse error before 'WEB'

    Command fail. Return code -61

 

In this case, there are two ways to delete the entry from CLI (on GUI the entry can be deleted directly by selecting it and selecting Delete):

 

  • The first is to write the first word in the name and press Tab to auto-complete the rest of the name.
  • However, if there are many entries and it is not possible to select the name with just Tab, the correct method is as follows:

 

config webfilter profile

    delete TEST\ WEB\ FILTER\ SPACE

end