title: How to remove retweet using twitter4j
body: <p>Twitter4j 2.x had a method called getRetweetedByMe which could be used to delete a retweet. However, I am using twitter4j 3.0 and that method has been removed. I tried another solution but I am getting a error saying I can't removes someone else status. How can I accomplish removing retweets with this version of twitter4j.</p>
  
  <p>My Approach:</p>
  
  <pre><code>        List&lt;Status&gt; retweets = twitter.getRetweets(statusId);
          for (Status retweet : retweets)
              if (retweet.getRetweetedStatus().getId() == statusId)
                  twitter.destroyStatus(retweet.getRetweetedStatus().getId());
  </code></pre>