## Delete an attachment

`client.Attachments.Delete(ctx, attachmentID) error`

**delete** `/v3/attachments/{attachmentId}`

Permanently delete an attachment owned by the authenticated partner.

### Parameters

- `attachmentID string`

### Example

```go
package main

import (
  "context"

  "github.com/linq-team/linq-go"
  "github.com/linq-team/linq-go/option"
)

func main() {
  client := linqgo.NewClient(
    option.WithAPIKey("My API Key"),
  )
  err := client.Attachments.Delete(context.TODO(), "abc12345-1234-5678-9abc-def012345678")
  if err != nil {
    panic(err.Error())
  }
}
```

#### Response

```json
{
  "error": {
    "status": 401,
    "code": 2004,
    "message": "Unauthorized - missing or invalid authentication token",
    "doc_url": "https://docs.linqapp.com/error/codes/2xxx/2004/"
  },
  "success": false
}
```
