private DeleteFolder():void
{
//id of content type
pnp.sp.web.getFolderByServerRelativePath("SiteAssets/NewFolder").delete()
.then(function(response)
{
console.log("Folder Deleted !");
}).catch(function(exception)
{
alert("Something went wrong :"+exception);
});
}
No comments:
Post a Comment