You can restore the component if it once deleted for SAP CRM, for this you must have a backup of the development system. It can help you for effectively restoring the backup of the system. You can also restore it manually, though for this you have to make some kind of effort and to call it you must have back up in place.
Let us take an example i.e. you have to go to client000 after that you have to go to SE80 and then go to component and later you have to click right to transfer it to the transport request, after than you have to import a traffic in an affected system.
Then you have to go to SE80 in an affected system and then you have to go to development package and later you have to go to BSP library and then BSP applications and then Z Enhancement component and click on right of the BSP applications to create the controllers. After creating the controllers you have to specify the name of the window controller e.g. Main Window.do or CMSGR.do. At last you would have to add the Z controller class for saving and activating it same as that you have to create a component controllers, then you have to make views and pages with the flow of logic and to add the Z Objects and classes as well .Finally it would affect all the given Z objects in the component.