Skip to content

Function: deleteAttachment() ​

ts
function deleteAttachment(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  author?: string;
  comment?: string;
  commentOutput?: string;
  created?: Date;
  filename?: string;
  filesize?: string;
  id?: number;
  mimeType?: string;
  url?: string;
}>;

Defined in: src/assetsServer/api/attachments.ts:53

Delete an attachment by attachment ID.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ attachmentId: string; }-
parameters.attachmentIdstringThe attachment ID
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; author?: string; comment?: string; commentOutput?: string; created?: Date; filename?: string; filesize?: string; id?: number; mimeType?: string; url?: string; }>