Remove all modules but the customer framework module

Hi is there a way to remove all modules except the customer framework modules?