Deleting a Topic
Deleting a topic is simple. Just call the delete
method like in the following sample code:
-
// Assume that the target topic has been instantiated. try { // Delete the topic. topic.delete(); } catch (IOException ioe) { // Handle the error. } catch (AppException e) { // Handle the error. }
-
// Assume that the target topic has been instantiated. // Delete the topic. topic.delete(new KiiTopicCallBack() { @Override public void onDeleteCompleted(int taskId, Exception exception) { if (exception != null) { // Handle the error. return; } } });