title: $resource $delete won't remove Resource object
body: <p>I have an AngularJS <a href="http://docs.angularjs.org/api/ngResource.%24resource" rel="nofollow"><code>$resource</code></a>:</p>
  
  <pre><code>App.factory("pjApi", ["$resource", function($resource) {
    return $resource("/api/:user/:action/:post_id/", {action:"posts"});
  }]);
  </code></pre>
  
  <p>and in my controller, I basically use it like this:</p>
  
  <pre><code>$scope.deletePost = function(post_id) {
      $scope.posts.forEach(function(post) {
          if (post_id === post.id)
              post.$delete({user:"tjb1982",action:"delete",post_id:post.id});
      });
  }
  </code></pre>
  
  <p>The server gives a response with status 200, application/json, and body: "1"</p>
  
  <p>What Angular does with this response is to remove the deleted instance of the Resource object, but then Angular replaces it with the response from the server (i.e. "1"), as if I were creating or updating:</p>
  
  <p><code>
  posts
  [Resource { 0="1", $$hashKey="00D", $get=function(),  more...}]
  </code></p>
  
  <p>etc.</p>
  
  <p>So my template is updated with this new (mostly blank) information, which is what I'm trying to avoid. I've tried returning nothing from the server or "0"-- returning nothing results in the Resource instance being preserved entirely and returning "0" results in the same as returning "1". </p>
  
  <p>What response is Angular looking for in order for this Resource instance to be removed entirely so that my template renders correctly?</p>