New Version of this Post available
The commands mentioned here don’t work anymore with newer releases of the Fabric. So I wrote a new post on how to factory reset your Cisco APIC in 2022
If you want to reset one or all of your APIC Controllers to factory default, there is a easy command for that ’eraseconfig setup'
When your intention is to reset a whole fabric, it’s recommended to reset the switches first:
Reset a ACI Spine/Leaf Switch
If you reset the APIC Controller first, you have to do this step through console afterwards.