public function delete($name)
    {
        if (file_exists(route()->com.$name)) {
            (new Files())->deleteDir(route()->com.$name);
        }
    }
public function delete($name)
    {
        if (file_exists(route()->com.$name)) {
            (new Files())->deleteDir(route()->com.$name);
        }
    }
public function delete ( $ name ) { if ( file_exists ( route ( ) -> com . $ name ) ) { ( new Files ( ) ) -> deleteDir ( route ( ) -> com . $ name ) ; } }
Delete component by name.

@param (string) $name Name of component.

@since 3.0.0

@return void
Delete component by name .