How to register vm in vcenter to add it to the inventory use power-cli ,while can use remove-vm to disconnect vm and vcenter with deletePermanently parameter
DeletePermanently | SwitchParameter | Indicates that you want to delete the virtual machines not only from the inventory, but from the datastore. | false | false |