# Delete Twin Identity
This endpoint deletes the requested Identity of a given Twin. The user can only delete Identities that are owned by their account.
Method | Path | Operation* |
---|---|---|
DELETE | /twins/{twin}/identities/{identity} | delete_twin_identity |
*
In order for a user to perform the "delete_twin_identity" operation, the "delete_twin_identity" permission must be included in the list of allowed actions in the statement of the user's role.
# Request
Parameter | Type | In | Description |
---|---|---|---|
{twin} required | string | path | Twin UUID. |
{identity} required | string | path | User-defined ID for the Identity. It must match the regular expression(opens new window) ^[A-Za-z_][0-9A-Za-z_]{0,7}#[0-9A-Za-z_=+-]{1,128}$ . It is stored in the "identity" field of the creation certificate of the Identity. |
In our example, we want to delete the Identity "RFID#ae144bdc-0f6d-4a00-4091-1a6d793aaa"
of the Twin with the Twin UUID "700e3a9c-ed26-4f8a-82ed-c0e4237fc600"
.
# Response
The response returns details of the deleted Identity.
Attribute | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
visibility | string | Visibility of the Identity. An Identity created in an account is visible to users belonging to that account. If the value of the "visibility" attribute is null , the Identity is private. Private Identities are only visible to users of the account that owns the Identity. If the value is not null , the Identity is public. Public Identities are visible to users of the account that owns the Identity and as well to users of other accounts if the visibility rule held in the "visibility" attribute evaluates to True . | ||||||||||||
validity_ts | timestamp | Time at which the Identity expires. Measured in seconds (to three decimal places) that have elapsed since the Unix epoch(opens new window). If the value is null , the Identity does not expire. | ||||||||||||
updated_ts | timestamp | Time at which the Identity was last updated. Measured in seconds (to three decimal places) that have elapsed since the Unix epoch(opens new window). | ||||||||||||
creation_certificate | dictionary | Certificate generated automatically by the system upon creation of the Identity. The creation certificate cannot be modified after it has been generated.
|
# Status codes
Requests to this endpoint result in generic status codes. For a comprehensive list of status codes, please consult the Status codes section.
Was this article helpful?