# Types.UnshareResourceInput

Input describing a file or folder to unshare from a Salesforce record.

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

This custom Apex type represents the input for the Remove from Community method. It identifies the resource to unshare and the Salesforce record it is being unshared from.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| resourceId | String | required | Input the Resource Id i.e. unique identifier of the file or folder to be unshared. |
| resourceType | String | required | Indicates whether the target is a file or folder. |
| parentId | String | required | The ID of the Salesforce record from which the resource will be unshared. |

## Constructors

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