Technical Note : How to delete an object name which contains spaces
| 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):
config webfilter profile delete TEST\ WEB\ FILTER\ SPACE end |