AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the DeleteCertificate operation. Deletes the specified certificate.

A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPolicy action to detach all policies. Next, use the UpdateCertificate action to set the certificate to the INACTIVE status.

Requires permission to access the DeleteCertificate action.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.IoT.AmazonIoTRequest
      Amazon.IoT.Model.DeleteCertificateRequest

Namespace: Amazon.IoT.Model
Assembly: AWSSDK.IoT.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteCertificateRequest : AmazonIoTRequest
         IAmazonWebServiceRequest

The DeleteCertificateRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteCertificateRequest()

Properties

NameTypeDescription
Public Property CertificateId System.String

Gets and sets the property CertificateId.

The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

Public Property ForceDelete System.Boolean

Gets and sets the property ForceDelete.

Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5