Is @Consumes annotation required or optional in the DELETE method Jersey
<p>I'm new in jersey rest service and I want to understand in this example the utility of adding <code>@Consumes</code> annotation to a delete method in this case this is the code it's work well (in a video ), is the <code>@Consumes</code> annotation optional here ? Thanks in advance </p>

<pre><code> @path("activities")
 public class ActivityResource {

    @DELETE
    @Path("{activityId}")
    @Consumes(MediaType.APPLICATION_JSON)
    @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML})
    public Response delete(@PathParam("activityId")String activityId) {
        activityRepository.delete(activityId);
        return Response.ok().build() ;
    }
}
</code></pre>