Skip to content

ark_asset_delete

Permanently delete one asset (asset_id) or one asset group (group_id). Irreversible.

Requires confirm=true. A non-empty group is refused unless cascade=true, which also deletes its assets. Only registered when BYTEPLUS_MODELARK_ASSETS_ALLOW_DELETE=true.

Requirement Value
Registration Requires BYTEPLUS_MODELARK_ASSETS_ALLOW_DELETE=true, BYTEPLUS_MODELARK_ACCESS_KEY and BYTEPLUS_MODELARK_SECRET_KEY.
Execution Foreground only
Required permission assets:delete

This site lists the full configured capability surface, not the tools enabled on your particular server. Use model discovery and job discovery to check your connection. Credentials are server configuration, never tool arguments.

Ask your connected AI client to use ark_asset_delete for the operation you want. The client constructs the arguments and handles tool calls. Review its proposed operation before approving anything billable. For a non-billable introduction, start with discovery without generation.

Call this tool directly. It is not a background-job target.

Match the input fields below and the full JSON Schema. See the worked examples for this capability and Background Execution for job/result handling.

The MCP arguments object wraps these fields as {"input": {...}}.

Field Type Required Description and constraints
asset_id string or null No Asset ID or asset:// reference. Exactly one of asset_id or group_id.; Default: null
cascade boolean No Group deletes only: also delete its assets. Non-empty groups are refused without it.; Default: false
confirm true Yes Must be true; deletion is irreversible.
group_id string or null No Asset group ID. Exactly one of asset_id or group_id.; Default: null
project_name string or null No ModelArk project name; defaults to BYTEPLUS_MODELARK_PROJECT_NAME. Assets only work within one project, so keep it consistent.; Default: null
Field Type Required Description and constraints
deleted boolean Yes True when the provider accepted the delete.
id string Yes ID of the deleted asset or group.
kind “asset”, “group” Yes Whether an asset or a group.

Field types named above refer to these shared definitions. Optional/null fields, enum choices and bounds are retained in the complete schemas below. Schema validation is followed by runtime capability and security checks.

AssetDeleteInput
Field Type Required Description and constraints
asset_id string or null No Asset ID or asset:// reference. Exactly one of asset_id or group_id.; Default: null
cascade boolean No Group deletes only: also delete its assets. Non-empty groups are refused without it.; Default: false
confirm true Yes Must be true; deletion is irreversible.
group_id string or null No Asset group ID. Exactly one of asset_id or group_id.; Default: null
project_name string or null No ModelArk project name; defaults to BYTEPLUS_MODELARK_PROJECT_NAME. Assets only work within one project, so keep it consistent.; Default: null
Input schema, including the MCP wrapper
{
"$defs": {
"AssetDeleteInput": {
"description": "Input for ``ark_asset_delete``.",
"properties": {
"asset_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Asset ID or asset:// reference. Exactly one of asset_id or group_id."
},
"cascade": {
"default": false,
"description": "Group deletes only: also delete its assets. Non-empty groups are refused without it.",
"type": "boolean"
},
"confirm": {
"const": true,
"description": "Must be true; deletion is irreversible.",
"type": "boolean"
},
"group_id": {
"anyOf": [
{
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Asset group ID. Exactly one of asset_id or group_id."
},
"project_name": {
"anyOf": [
{
"maxLength": 64,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "ModelArk project name; defaults to BYTEPLUS_MODELARK_PROJECT_NAME. Assets only work within one project, so keep it consistent."
}
},
"required": [
"confirm"
],
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"input": {
"$ref": "#/$defs/AssetDeleteInput"
}
},
"required": [
"input"
],
"type": "object"
}
Output schema, including nested definitions
{
"description": "Output for ``ark_asset_delete``.",
"properties": {
"deleted": {
"description": "True when the provider accepted the delete.",
"title": "Deleted",
"type": "boolean"
},
"id": {
"description": "ID of the deleted asset or group.",
"title": "Id",
"type": "string"
},
"kind": {
"description": "Whether an asset or a group.",
"enum": [
"asset",
"group"
],
"title": "Kind",
"type": "string"
}
},
"required": [
"id",
"kind",
"deleted"
],
"title": "AssetDeleteResult",
"type": "object"
}
  • Missing tool: check provider credentials and feature flags, then restart the connection.
  • Invalid arguments: keep the correct wrapper and follow current model limits from discovery. A valid schema alone does not prove the chosen model supports the combination.
  • A job completes with an error: inspect the original tool result, not only the outer job status. Never automatically resubmit potentially billable work.
  • Local output writes from jobs require server-configured OUTPUT_ROOTS; HTTP cannot write to a client’s local disk.

See configuration, background execution, and artifact delivery.