トピックの削除

トピックを削除するには 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.
      }
    });