Skip to main content

recursive

Creates, updates, deletes, gets or lists a recursive resource.

Overview

Namerecursive
TypeResource
Idgoogle.storage.recursive

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
delete_recursivedeletebucket, folderifMetagenerationMatch, ifMetagenerationNotMatchDeletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
bucketstring
folderstring
ifMetagenerationMatchstring (int64)
ifMetagenerationNotMatchstring (int64)

DELETE examples

Deletes a folder recursively. Only applicable to buckets with hierarchical namespace enabled.

DELETE FROM google.storage.recursive
WHERE bucket = '{{ bucket }}' --required
AND folder = '{{ folder }}' --required
AND ifMetagenerationMatch = '{{ ifMetagenerationMatch }}'
AND ifMetagenerationNotMatch = '{{ ifMetagenerationNotMatch }}'
;