PollMgr.deletePoll (pollObj)
delete a poll and all its choices and votes

  • Parameter Object:
    the poll to be removed
  • Returns
    Object containing the properties - error (boolean): true if error occured, false otherwise - message (String): an error or a confirmation message
Sourcecode in PollMgr/objectFunctions.js:
1:   function deletePoll(pollObj) {
2:      pollObj.deleteAll();
3:      pollObj.remove();
4:      return new Message("pollDelete");
5:   }