> 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).

# appmixer.xero.accounting.DeleteTrackingCategory

- Component: `appmixer.xero.accounting.DeleteTrackingCategory`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.xero 2.3.0](https://connectors.appmixer.com/connector/appmixer.xero/2.3.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.xero/2.3.0/component/appmixer.xero.accounting.DeleteTrackingCategory>

Delete a tracking category in Xero. Only a tracking category that has never been used on a transaction can be deleted; a used one has to be archived instead.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Tenant ID (`tenantId`) | text | - |
| Tracking Category (`trackingCategoryId`) | text | The tracking category to delete. Xero deletes only a category that has never been used on a transaction; archive a used one in Xero instead. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.xero.accounting.DeleteTrackingCategory",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Delete a tracking category in Xero. Only a tracking category that has never been used on a transaction can be deleted; a used one has to be archived instead.",
  "private": false,
  "auth": {
    "service": "appmixer:xero",
    "scope": [
      "accounting.settings"
    ]
  },
  "quota": {
    "manager": "appmixer:xero:accounting",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "tenantId": {
            "type": "string"
          },
          "trackingCategoryId": {
            "type": "string"
          }
        },
        "required": [
          "tenantId",
          "trackingCategoryId"
        ]
      },
      "inspector": {
        "inputs": {
          "tenantId": {
            "type": "text",
            "label": "Tenant ID",
            "index": 1,
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTenants?outPort=tenants",
              "data": {
                "transform": "./transformers#tenantsToSelectArray"
              }
            }
          },
          "trackingCategoryId": {
            "type": "text",
            "label": "Tracking Category",
            "index": 2,
            "tooltip": "The tracking category to delete. Xero deletes only a category that has never been used on a transaction; archive a used one in Xero instead.",
            "source": {
              "url": "/component/appmixer/xero/accounting/ListTrackingCategories?outPort=trackingCategories",
              "data": {
                "properties": {
                  "isSource": true
                },
                "messages": {
                  "in/tenantId": "inputs/in/tenantId"
                },
                "transform": "./transformers#categoriesToSelectArray"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out"
    }
  ],
  "icon": "(data URI omitted)"
}
```
