**To deregister an on-premises instance** This example deregisters an on-premises instance with AWS CodeDeploy, but it does not delete the IAM user associated with the instance, nor does it disassociate in AWS CodeDeploy the on-premises instance tags from the instance. It also does not uninstall the AWS CodeDeploy Agent from the instance nor remove the on-premises configuration file from the instance. Command:: aws deploy deregister-on-premises-instance --instance-name AssetTag12010298EX Output:: This command produces no output.