# Types.DeleteAttachmentInput

Input for detaching a file or folder from a Salesforce record.

> Kind: Apex type · Updated: 2026-07-01

Represents the input for deleting an attachment. Consumed by Client.deleteAttachment() to remove the association between a file or folder and the Salesforce record it is attached to.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| resourceId | String | required | Id of the file or folder. |
| resourceType | String | required | One of file or folder. |
| parentId | String | required | Id of the Salesforce record the file or folder is attached to. |
| objectType | String | optional | SObject type of the parent record. Optional; only accepted by the four-argument constructor. |

## Constructors

```apex
global DeleteAttachmentInput(
  String resourceId,
  String resourceType,
  String parentId
)
```

```apex
global DeleteAttachmentInput(
  String resourceId,
  String resourceType,
  String parentId,
  String objectType
)
```
