UNPKG

spws

Version:

SharePoint Web Services Wrapper

22 lines (21 loc) 609 B
import { SpwsResponse } from "../../types"; interface Operation extends SpwsResponse { data: { success: boolean; }; } type Params = { webURL?: string; }; /** * Deletes the list. * * @link https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms773418(v=office.12) * @example * ``` * // Get list collection for current site * const res = await deleteList("Announcements", { webURL: "/sites/other" }) * ``` */ declare const deleteList: (listName: string, { webURL }?: Params) => Promise<Operation>; export default deleteList;