> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Delete Contact

- Component: `appmixer.loops.core.DeleteContact`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.loops 1.0.0](https://connectors.appmixer.com/connector/appmixer.loops/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.loops/1.0.0/component/appmixer.loops.core.DeleteContact>

Delete a contact by email address or by user ID.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Identify Contact By (`identifyBy`) | select | Whether the value below is the contact's email address or its user ID. |
| Email or User ID (`identifier`) | text | The email address or the user ID of the contact to delete, matching Identify Contact By. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.loops.core.DeleteContact",
  "label": "Delete Contact",
  "description": "Delete a contact by email address or by user ID.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:loops"
  },
  "quota": {
    "manager": "appmixer:loops",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "identifyBy": {
            "type": "string",
            "enum": [
              "email",
              "userId"
            ]
          },
          "identifier": {
            "type": "string"
          }
        },
        "required": [
          "identifier"
        ]
      },
      "inspector": {
        "inputs": {
          "identifyBy": {
            "type": "select",
            "index": 1,
            "label": "Identify Contact By",
            "defaultValue": "email",
            "tooltip": "Whether the value below is the contact's email address or its user ID.",
            "options": [
              {
                "label": "Email",
                "value": "email"
              },
              {
                "label": "User ID",
                "value": "userId"
              }
            ]
          },
          "identifier": {
            "type": "text",
            "index": 2,
            "label": "Email or User ID",
            "tooltip": "The email address or the user ID of the contact to delete, matching Identify Contact By."
          }
        }
      }
    }
  ],
  "outPorts": [
    "out"
  ],
  "icon": "(data URI omitted)"
}
```
