import requests
url = "https://www.chenyu.cn/api/open/v2/image/private/delete"
headers = {
"Authorization": "Bearer your_api_key",
"Content-Type": "application/json"
}
data = {
"image_uuid": "img_12345678-1234-1234-1234-123456789012"
}
response = requests.post(url, headers=headers, json=data)
result = response.json()
if result['code'] == 0:
print("镜像删除成功")
else:
print(f"删除失败: {result['msg']}")