delete_component: Empty out a component and delete it
Description
This function removes all files contained in a component and then removes
the component itself. NOTE: it does not request confirmation, so please
handle with care. If you do not have backups of the files, it is easy to
lose everything (in the component).