---
title: Delete Invite
url: https://platform.claude.com/docs/en/api/go/organization/invites/delete
---

# Delete Invite

`client.Organization.Invites.Delete(ctx, inviteID) (*OrganizationInviteDeleteResponse, error)`

**DELETE** `/v1/organizations/invites/{invite_id}`

Delete a pending invite.

## Parameters

- `inviteID string` (path parameter)

  ID of the Invite.

## Returns

- `type OrganizationInviteDeleteResponse`

  - `Type InviteDeleted`

    Deleted object type.

    For Invites, this is always `"invite_deleted"`.

    default: invite_deleted

  - `ID string`

    ID of the Invite.

## Example

```go
package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go"
	"github.com/anthropics/anthropic-sdk-go/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	invite, err := client.Organization.Invites.Delete(context.TODO(), "invite_id")
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", invite.ID)
}
```

### Response (200)

```json
{
  "id": "invite_015gWxCN9Hfg2QhZwTK7Mdeu",
  "type": "invite_deleted"
}
```
