Deletes files from static website hosting in bulk.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpserverless:BatchDeleteWebHostingFiles |
delete |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SpaceId |
string |
Yes |
ID of the service space. |
0e16bb12-14af-4635-b24c-5ac1a9a***** |
| FilePaths |
array |
Yes |
Paths of the files to delete. |
/static/test.png |
|
string |
No |
Path of a file to delete. |
static/index.870cf761.js |
For example, to delete two files named a and b, set the FilePaths parameter as follows:{"FilePaths.1": "a", "FilePaths.2": "b" }
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
boolean |
Indicates whether the operation succeeded.
|
true |
| RequestId |
string |
Unique request ID. |
0e16bb12-14af-4635-b24c-5ac1a9a***** |
Examples
Success response
JSON format
{
"Data": true,
"RequestId": "0e16bb12-14af-4635-b24c-5ac1a9a*****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.