title: Delete using Yammer API Issue - “Rate limited due to excessive requests.”
body: <p>While delete a comment, I can delete two comments back to back but when I tried to delete next comment(3rd comment). It shows error in console <strong>“Rate limited due to excessive requests.”</strong> But after few seconds when I try to delete, it works fine for next two comments. I have tried to use “wait” function for few seconds to make it work but there is inconsistency in result. Sometimes it works and sometimes it doesn’t.
  My code as follows,</p>
  
  <pre><code>function deleteComment(MessagePostId) {
      var result = confirm("Are you sure you want to delete this Comment?");
      if (result) {
          yam.platform.request({
              url: "https://api.yammer.com/api/v1/messages/" + MessagePostId,
              method: "DELETE",
              async: false,
              beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', token) },
              success: function (res) {
                  alert("The Comment has been deleted.");
                  //Code to remove item from array and display rest of the comment to screen
              },
              error: function (res) {
                  alert("Please try again after some time.");
              }
          })
      }
  }
  </code></pre>