UNPKG

spws

Version:

SharePoint Web Services Wrapper

28 lines (27 loc) 935 B
import { SpwsResponse } from "../../types"; interface Operation extends SpwsResponse { } type Params = { listName: string; listItemID: string; /** A string that contains the absolute URL for the attachment * as follows: http://Server_Name/Site_Name/Lists/List_Name/Attachments/Item_ID/FileName. */ url: string; webURL?: string; }; /** * Removes the attachment from the specified list item. * * @link https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms774770(v=office.12) * @example * ``` * // Get list collection for current site * const res = await getListCollection() * * // Get list collection for another site * const res = await getListCollection({ webURL: "/sites/other" }) * ``` */ declare const deleteAttachment: ({ listName, listItemID, url, webURL, }: Params) => Promise<Operation>; export default deleteAttachment;