Hey Juan,
your question is not very clear but i believe you want to know how to clean ip route table and configuration. So:
1. Cleaning IP routing table - clear ip route * - This will refersh the routing table.
2. Cleaning configuration - It depends on the device however in most of Cisco devices you may clear the startup configurtion and its done :)
HTH.
regards,
RS.