Run the remove-attributes command with one of the attribute types. This example uses endpoint-custom-attributes:
aws pinpoint remove-attributes --application-id MyApplicationID --attribute-type endpoint-user-attributes --update-attributes-request Blacklist=AttributeName
Note: In the preceding command, replace MyApplicationID with the application ID for your Amazon Pinpoint project. Replace AttributeName with an attribute name that doesn't exist in your application.
Because the attribute name doesn't exist, the output provides a list of remaining attributes of the specified attribute type.
The output looks similar to the following one:
{
"ApplicationId": "string",
"AttributeType": "endpoint-custom-attributes",
"Attributes": [
"ea20",
"ea21",
"ea22",
"ea23",
"ea24",
"ea25",
"ea26",
"ea27",
"ea17",
"ea18",
"ea19",
"ea10",
"ea11",
"ea12",
"ea13",
"ea14",
"ea15",
"ea16",
"eaCommon",
"ea1",
"ea5",
"ea4",
"ea3",
"ea2",
"ea9",
"ea8",
"ea7",
"ea6",
"ea28",
"ea29"
]
}