Occasionally, when something was changed or for debugging purposes one might want to clear the present routing table and/or force the OSPFv3 process to build it a new. This is done using the following command, which is issued at the global configuration level:
Router # clear ipv6 ospf [process-id] {process | force-spf | \\
redistribution | counters [neighbor [neighbor-interface]]}
The command clears the OSPF state based on the OSPF routing process ID.
When the process keyword is used with the clear ipv6 ospf command, the OSPF database is cleared and repopulated, and then the shortest path first (SPF) algorithm is performed. When the force-spf keyword is used with the clear ipv6 ospf command, the OSPF database is not cleared before the SPF algorithm is performed.
Example
The easiest way to do this is issuing the command without any more options:
Router# clear ipv6 ospf force-spf
