> 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.github.list.DeleteBranch

- Component: `appmixer.github.list.DeleteBranch`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.github 4.2.0](https://connectors.appmixer.com/connector/appmixer.github/4.2.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.github/4.2.0/component/appmixer.github.list.DeleteBranch>

Delete a branch.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Repository (`repository`) | text | Enter the repository in `owner/repo` format (e.g. `octocat/Hello-World`). You can also pick from the dynamically loaded list of your repositories. |
| Branch (`branch`) | text | Select a branch to delete. You can also type the value manually. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Deleted Branch (`branch`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.github.list.DeleteBranch",
  "author": "Appmixer <info@appmixer.com>",
  "icon": "(data URI omitted)",
  "description": "Delete a branch.",
  "private": false,
  "auth": {
    "service": "appmixer:github",
    "scope": [
      "user",
      "public_repo",
      "repo",
      "notifications",
      "gist"
    ]
  },
  "quota": {
    "manager": "appmixer:github",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "repository": {
            "type": "string"
          },
          "branch": {
            "type": "string"
          }
        },
        "required": [
          "repository",
          "branch"
        ]
      },
      "inspector": {
        "inputs": {
          "repository": {
            "type": "text",
            "group": "transformation",
            "label": "Repository",
            "index": 1,
            "tooltip": "Enter the repository in `owner/repo` format (e.g. `octocat/Hello-World`). You can also pick from the dynamically loaded list of your repositories.",
            "source": {
              "url": "/component/appmixer/github/list/ListRepos?outPort=repositories",
              "data": {
                "transform": "./transformers#reposToSelectArray"
              }
            }
          },
          "branch": {
            "type": "text",
            "group": "transformation",
            "label": "Branch",
            "index": 2,
            "source": {
              "url": "/component/appmixer/github/list/ListBranches?outPort=branches",
              "data": {
                "properties": {
                  "repositoryId": "inputs/in/repository"
                },
                "transform": "./transformers#branchesToSelectArray"
              }
            },
            "tooltip": "Select a branch to delete. You can also type the value manually."
          }
        },
        "groups": {
          "transformation": {
            "label": "Transformation",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Deleted Branch",
          "value": "branch",
          "schema": {
            "type": "string",
            "example": "feature-branch"
          }
        }
      ]
    }
  ]
}
```
