DeleteDatasetVersion
Deletes a historical version of a dataset in a specified agent space. After the deletion, the version no longer appears in the list returned by ListDatasetVersions. This operation does not delete the dataset itself, current data, or other historical versions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:DeleteDatasetVersion |
delete |
*Dataset
|
None | None |
Request syntax
DELETE /agentspace/{agentSpace}/dataset/{datasetName}/version/{version} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
Yes |
The name of the agent space to which the dataset belongs. Specify the name of an existing agent space that you have permissions to access. |
my_agent_space |
| datasetName |
string |
Yes |
The name of the dataset. You can call ListDatasets to obtain the dataset name. The name must be 4 to 63 characters in length, start with a lowercase letter, and contain only lowercase letters, digits, and underscores. It cannot end with an underscore or contain consecutive underscores. |
product_faq_dataset |
| version |
string |
Yes |
The name of the historical version to be deleted. You can call ListDatasetVersions to obtain the version name. The name cannot be empty after leading and trailing whitespace is removed, and cannot contain forward slashes (/). |
v1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response information returned when the request is successful. |
||
| requestId |
string |
The unique identifier of the request, which is used to locate and troubleshoot issues. |
D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D |
Examples
Success response
JSON format
{
"requestId": "D17DE39E-6C62-50E3-9EB7-FDE41BB0D43D"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.