Deleting the OpenFlow Flows

You can delete an individual OpenFlow rule or all the flows in the flow table. To delete a single OpenFlow rule based on a flow ID, enter the clear openflow command.

device# clear openflow flowid 6
device# clear openflow flowid all

The clear openflow command deletes 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.