O'Reilly logo
  • Kshitij Chandra Poudyal thinks this is interesting:

file.deleteAsync()
    .done(function () { TodoList.alert("File deleted" },
          function () { TodoList.alert("Unable to delete the file" }