}
API api = APIFactory.getAPI();
try {
EnumWikipedia wiki = page.getWikipedia();
api.deletePage(
wiki, page, wiki.formatComment(reason.trim(), false));
if (listener != null) {
listener.pageDeleted(page.getTitle());
}
} catch (APIException ex) {
Utilities.displayError(parent, ex);