Deletes PolarLakebase files. Currently, only the Basic Edition and Cold Storage Edition are supported.
Operation description
Request description
The
PolarFsInstanceIdparameter is required and specifies the PolarFS instance to operate on.The
DBClusterIdparameter is optional. If provided, it indicates that the operation is associated with a specific PolarDB cluster.The
Objectsparameter is a required array of character strings that lists all object paths to be deleted.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DeletePolarFsObjects |
none |
*All Resource
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolarFsInstanceId |
string |
Yes |
The PolarLakebase instance ID. |
pfs-2ze0i7***** |
| DBClusterId |
string |
No |
The cluster ID. |
pc-*** |
| ObjectsToDelete |
array |
Yes |
The list of files to be deleted. Parameter value examples:
|
|
|
string |
No |
The file to be deleted. |
test001/ |
ObjectsToDelete parameter value examples:
Example directory path to be deleted for Cold Storage Edition: test001/
Example file path to be deleted for Cold Storage Edition: test001/file.txt
Example directory path to be deleted for Basic Edition: /dir
Example file path to be deleted for Basic Edition: /dir/file.txt
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
C890995A-CF06-4F4D-8DB8-DD26C2****** |
| PolarFsInstanceId |
string |
The PolarLakebase instance ID. |
pfs-2ze0i7***** |
Examples
Success response
JSON format
{
"RequestId": "C890995A-CF06-4F4D-8DB8-DD26C2******",
"PolarFsInstanceId": "pfs-2ze0i7*****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.ObjectsToDelete | ObjectsToDelete is required and must contain at least one path. | The ObjectsToDelete array is empty. |
| 400 | InvalidPolarFsObjects.Malformed | The specified polarFs objects to delete is not valid. | The old code is retained and the Details field is enhanced to specify the exact cause of the parameter validation failure. |
| 400 | OperationDenied.DeleteNotSupportedForAccelerateType | DeletePolarFsObjects is not supported for PolarFS instance '{PolarFsInstanceId}' with AccelerateType='{actual_accelerate_type}'. Supported AccelerateType values: [see API documentation]. | A specific error code is added to explicitly indicate that the AccelerateType does not support deletion for {PolarFsInstanceId}. The actual accelerate type is {actual_accelerate_type}. |
| 400 | FilesystemOperation.Failed | delete directory API is temporarily disabled | Instances with Juice acceleration do not support the DeletePolarFsObjects operation (retaining legacy code and enhancing Details). |
| 401 | OperationDenied.UnsupportedAccelerateType | The accelerate type is not support. | This API is not supported for the AccelerateType of the PolarFS instance (such as Alluxio). |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.