You can call the DeleteUserBackupFile operation to delete a full backup file.
- A full backup file contains the data of a self-managed MySQL database. You can restore the data of a self-managed MySQL database from a full backup file to an ApsaraDB RDS for MySQL instance. For more information, see Migrate full the backup data of a self-managed MySQL 5.7 database to an ApsaraDB RDS for MySQL instance.
- This operation deletes full backup files only from the ApsaraDB RDS console. This operation does not affect the full backup files that are stored as objects in Object Storage Service (OSS) buckets. After you call this operation to delete a full backup file, you can call the ImportUserBackupFile operation to reimport the full backup file.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteUserBackupFile |
The operation that you want to perform. Set the value to DeleteUserBackupFile. |
BackupId | String | Yes | b-w1haya7e4i25******** |
The ID of the full backup file. You can call the ListUserBackupFiles operation to query the information about all full backup files in the region. |
RegionId | String | Yes | cn-hangzhou |
The region ID of the full backup file. You can call the DescribeRegions operation to query the most recent region list. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
BackupId | String | b-w1haya7e4i25******** |
The ID of the deleted full backup file. |
RequestId | String | F28AE40B-203B-4CFE-B81F-FD981CD97B17 |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/?Action=DeleteUserBackupFile
&BackupId=b-w1haya7e4i25********
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
<DeleteUserBackupFileResponse>
<RequestId>F28AE40B-203B-4CFE-B81F-FD981CD97B17</RequestId>
<BackupId>b-w1haya7e4i25********</BackupId>
</DeleteUserBackupFileResponse>
JSON
format
{
"RequestId": "F28AE40B-203B-4CFE-B81F-FD981CD97B17",
"BackupId": "b-w1haya7e4i25********"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | OperationDenied.Product | The product code is not supported. | The error message returned because the product code is not supported. |
For a list of error codes, visit the API Error Center.