ncloud_ncs_delete_object
Permanently delete an object or specific version from a Ncloud Storage bucket, including governance-locked objects. On versioned buckets, omitting versionId only adds a delete marker, so versions remain and keep billing.
Instructions
[Ncloud Storage] ⚠️ Destructive: Delete an object from a Ncloud Storage bucket (DELETE /{key}). In a versioning-enabled bucket, omitting versionId only adds a delete marker (the versions stay and keep billing); pass versionId to permanently remove one version. bypassGovernanceRetention=true is needed for objects under GOVERNANCE retention. Set confirm=true to execute.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucketName": "<bucketName>",
"key": "<key>"
},
"name": "ncloud_ncs_delete_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key (path) to delete | |
| confirm | No | Must be true to actually execute the destructive operation | |
| ifMatch | No | If-Match — delete only if the current ETag equals this value, or '*' to delete only if the object exists. Cannot be used with versionId. Fails with 412 PreconditionFailed otherwise | |
| versionId | No | Version ID to delete permanently. Omit to delete the current version (adds a delete marker on versioned buckets) | |
| bucketName | Yes | Name of the Ncloud Storage bucket | |
| expectedBucketOwner | No | x-amz-expected-bucket-owner — expected owner account number of the bucket: the account number inside any resource NRN (nrn:PUB:<service>:<region>:<accountNo>:…, e.g. from ncloud_resource_list_resources). The 36-char owner ID from ncloud_ncs_list_buckets is rejected as InvalidBucketOwnerAWSAccountID. A different owner is rejected with AccessDenied (403) | |
| bypassGovernanceRetention | No | Send x-amz-bypass-governance-retention: true to delete an object locked in GOVERNANCE mode (requires the bypass permission) |