AWS SDK for .NET Documentation
DeregisterImage Method (request)
AmazonAmazon.EC2AmazonEC2ClientDeregisterImage(DeregisterImageRequest) Did this page help you?   Yes   No    Tell us about it...
Deregisters the specified AMI. Once deregistered, the AMI cannot be used to launch new instances.
Declaration Syntax
C#
public DeregisterImageResponse DeregisterImage(
	DeregisterImageRequest request
)
Parameters
request (DeregisterImageRequest)
Deregister Image request
Return Value
Deregister Image Response from the service
Remarks
This command does not delete the AMI from Amazon S3.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)