- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Deletes a directory (inside a Workspace) and all of its contents.
HTTP request
POST https://dataform.googleapis.com/v1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| workspace | 
 Required. The workspace's name. Authorization requires the following IAM permission on the specified resource  
 | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| { "path": string } | 
| Fields | |
|---|---|
| path | 
 Required. The directory's full path including directory name, relative to the workspace root. | 
Response body
If successful, the response body is empty.
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/bigquery
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the workspace resource:
- dataform.workspaces.removeDirectory
For more information, see the IAM documentation.