Skip to main content
jfgagnon
New Member
April 6, 2018
Solved

Cannot delete interface

  • April 6, 2018
  • 3 replies
  • 107566 views

Hi!

 

I created a hardware switch interface type, with 2 physical ports, and cannot delete it.

It's grayed out, even if I try to disable them.

 

How is it possible to delete them, please?

 

TY

    Best answer by Toshi_Esumi

    Go to GUI Interfaces view. At the end of the table, there is a Ref. column. I assume the number of reference is not 0. Then you can't delete it. If you click the number, you can see where it is referred. You need to remove the references first to be able to delete any objects not only an interface.

    3 replies

    Toshi_Esumi
    SuperUser
    SuperUser
    April 6, 2018

    Go to GUI Interfaces view. At the end of the table, there is a Ref. column. I assume the number of reference is not 0. Then you can't delete it. If you click the number, you can see where it is referred. You need to remove the references first to be able to delete any objects not only an interface.

    patrickwilson82
    New Member
    May 10, 2018

    When I click on the reference number, it shows no matching entries under Current Usage. So what would those references be?

    Toshi_Esumi
    SuperUser
    SuperUser
    May 10, 2018

    That happened to me too. I don't remember how I fixed those cases but it means you removed all references already. It might take a reboot if you don't see anything even in CLI "show | grep -f <OBJECT_NAME>".

    Yemar
    New Member
    November 1, 2024

    Hi, 

    When creating a hardware switch, it's common to also set up a VLAN, address object, and DHCP server. To delete the hardware switch interface, first check the VLAN under that switch to see the reference count.

    If the reference shows dependencies, click to view them. Items with a reference count of "0" can be deleted. However, for address objects that match subnets, you need to go to the Address section under Policies and Objects, search for the specific address, and delete it.

    After removing any necessary address objects, go back to the VLAN interface and check the reference count again. If it’s "0," you can delete the VLAN and reuse the interface.

    isaiahW
    New Member
    July 23, 2025

    To add to this, make sure you check DHCP servers and make sure one wasn't created. I found in my case I had set the setting for the interface to do dhcp but even once i turned it off the dhcp server was still sitting on the firewall.

    Akb81
    New Member
    July 25, 2025

    These guys are leading you astray , go in to Addresses and delete the interface . It will be under policy and objects > addresses as well as interface list .