Deleting the OpenFlow flows

When an individual OpenFlow rule or all flows in the flow table need to be deleted, you can use the clear openflow command. Use this command to delete a single OpenFlow rule based on a Flow ID or delete all flows in the flow table.

device# clear openflow flowid 6

Syntax: clear openflow flowid flow-id| all

The flowid flow-id parameter deletes a single OpenFlow rule with the given flow ID. The all keyword deletes all flows in the flow table. The command will delete the rule irrespective of the state it is in (ACTIVE, PENDING_ADD, PENDING_MODIFY, or PENDING_DELETE). The same rule can be added again later from the controller if needed.