code: function(id) {
        return $http({
          url : '/api/v1/posts/' + id,
          method : 'DELETE',
          params : {access_token : authProvider.getUser().token}
        }).catch(authProvider.checkApiResponse);
      }
docs: Deletes a post