Deleting a topic is simple. Just call the delete method like in the following sample code:
delete
// Assume that the target topic has been instantiated. // Delete the topic. topic.deleteTopic().then( function(theTopic) { // Do something. } ).catch( function(error) { // Handle the error. var theTopic = error.target; var errorString = error.message; } );
// Assume that the target topic has been instantiated. // Delete the topic. topic.deleteTopic({ success: function(theTopic) { // Do something. }, failure: function(theTopic, errorString) { // Handle the error. } });