/** * Delete Push Application * * @param pushApplicationID id of {@link PushApplication} * @statuscode 204 The PushApplication successfully deleted * @statuscode 404 The requested PushApplication resource does not exist */ @DELETE @Path("/{pushAppID}") @Produces(MediaType.APPLICATION_JSON) @ReturnType("java.lang.Void") public Response deletePushApplication(@PathParam("pushAppID") String pushApplicationID) { PushApplication pushApp = getSearch().findByPushApplicationIDForDeveloper(pushApplicationID); if (pushApp != null) { pushAppService.removePushApplication(pushApp); return Response.noContent().build(); } return Response.status(Status.NOT_FOUND) .entity("Could not find requested PushApplicationEntity") .build(); }