DELETE /platform/v1/key/{keyId}

Deletes a key based on the keyId for the current MID. This feature is a limited availability program. Contact your Marketing Cloud account representative for more information about participation in this program. Data at Rest Encryption is a prerequisite for this feature.

NameTypeDescription
keyIdstringRequiredID of the key. Format: UUID.
x-request-idstringHeader parameter: Request ID for the request. Default Format: 4586c4c7-8504-4cf4-942d-19f99a57c4d9.
x-mccs-user-contextstringHeader parameter: Indicates the MCCS user context. Example: EID=111;MID=111;EmployeeId=111.
x-mccs-keystore-providerstringHeader parameter: Specify a key store provider to use for an ImportKey or WrappingKey request. Examples: kms, keysecure, database. Default: keysecure.
x-mccs-macstringHeader parameter: Specify the message authentication code for the request.
StatusNameTypeDescription
204  Successfully soft deleted meta data and hard deleted key from keystore
    
400  Tde keys used by encrypted backups cannot be deleted, must wait 90 days from rotate or restore
 typestringundefined
 titlestringundefined
 statusintegerFormat: int32.
 detailstringundefined
 instancestringundefined
 additionalPropertiesobjectundefined
    
404  Key not found
 typestringundefined
 titlestringundefined
 statusintegerFormat: int32.
 detailstringundefined
 instancestringundefined
 additionalPropertiesobjectundefined
    
500  Unable to process request
 statusCodeintegerFormat: int32.
 requestIdstringundefined
 messagestringundefined
 messageCodestringundefined

Example Request

Example Response