# Google Cloud Storage Control V2 Client - Class DeleteFolderRecursiveRequest (1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.3 1.5.0 1.4.1 1.3.0 1.1.0 1.0.3 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Storage Control V2 Client class DeleteFolderRecursiveRequest.

Request message for DeleteFolderRecursive.

Generated from protobuf message `google.storage.control.v2.DeleteFolderRecursiveRequest`

## Namespace

Google \\ Cloud \\ Storage \\ Control \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Name of the folder being deleted, however all of its contents will be deleted too. Format: `projects/{project}/buckets/{bucket}/folders/{folder}` |
| `↳ if_metageneration_match` | `int|string` Optional. Makes the operation only succeed conditional on whether the root folder's current metageneration matches the given value. |
| `↳ if_metageneration_not_match` | `int|string` Optional. Makes the operation only succeed conditional on whether the root folder's current metageneration does not match the given value. |
| `↳ request_id` | `string` Optional. A unique identifier for this request. UUID is the recommended format, but other formats are still accepted. |

### getName

Required. Name of the folder being deleted, however all of its contents
will be deleted too. Format:
`projects/{project}/buckets/{bucket}/folders/{folder}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. Name of the folder being deleted, however all of its contents
will be deleted too. Format:
`projects/{project}/buckets/{bucket}/folders/{folder}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIfMetagenerationMatch

Optional. Makes the operation only succeed conditional on whether the root
folder's current metageneration matches the given value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasIfMetagenerationMatch

### clearIfMetagenerationMatch

### setIfMetagenerationMatch

Optional. Makes the operation only succeed conditional on whether the root
folder's current metageneration matches the given value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIfMetagenerationNotMatch

Optional. Makes the operation only succeed conditional on whether the root
folder's current metageneration does not match the given value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasIfMetagenerationNotMatch

### clearIfMetagenerationNotMatch

### setIfMetagenerationNotMatch

Optional. Makes the operation only succeed conditional on whether the root
folder's current metageneration does not match the given value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRequestId

Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setRequestId

Optional. A unique identifier for this request. UUID is the recommended
format, but other formats are still accepted.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Name of the folder being deleted, however all of its contents will be deleted too. Format: `projects/{project}/buckets/{bucket}/folders/{folder}` Please see StorageControlClient::folderName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-storage-control/latest/V2.DeleteFolderRecursiveRequest` |   |