Skip to main content
Glama

deleteAsset

Remove an asset from Adobe Experience Manager DAM by specifying its path using the AEM MCP Server, with optional force flag for immediate deletion.

Instructions

Delete an asset from AEM DAM

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assetPathYes
forceNo

Implementation Reference

  • Core handler function implementing the deleteAsset tool: destructures request, validates assetPath, executes HTTP DELETE request, and constructs success response.
    async deleteAsset(request) { return safeExecute(async () => { const { assetPath, force = false } = request; if (!isValidContentPath(assetPath)) { throw createAEMError(AEM_ERROR_CODES.INVALID_PARAMETERS, `Invalid asset path: ${String(assetPath)}`, { assetPath }); } await this.httpClient.delete(assetPath); return createSuccessResponse({ success: true, deletedPath: assetPath, force, timestamp: new Date().toISOString(), }, 'deleteAsset'); }, 'deleteAsset'); }
  • MCP tool registration entry defining the 'deleteAsset' tool with description and JSON input schema.
    name: 'deleteAsset', description: 'Delete an asset from AEM DAM', inputSchema: { type: 'object', properties: { assetPath: { type: 'string' }, force: { type: 'boolean' }, }, required: ['assetPath'], },
  • Top-level dispatch handler in MCP server for 'deleteAsset' tool calls, invoking aemConnector and formatting response.
    case 'deleteAsset': { const result = await aemConnector.deleteAsset(args); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
  • TypeScript interface defining the input parameters for deleteAsset request.
    export interface DeleteAssetRequest { assetPath: string; force?: boolean; }
  • TypeScript interface for the response structure returned by deleteAsset.
    export interface DeleteResponse extends BaseResponse { data: { success: boolean; deletedPath: string; timestamp: string; }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/indrasishbanerjee/aem-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server