deletePage
Encapsulates the API DeletePage function, which permanently deletes a page. Requires moderator or higher privileges.
jpal.deletePage(page,handler);
page is the name of the page
handler receives the returned object. (optional)
Example:
function handleDelete(result) {
if (result.deleted && result.deleted=='absolutely')
alert('Page deleted successfully');
else if (result.error && result.errCode) {
alert('Error ' + result.errCode + ': ' + result.error);
}
jpal.deletePage('SomePage',handleDelete);
Comments (0)
You don't have permission to comment on this page.