@Override
	public Response deleteResource(OperationContext context) {
		context.
			checkOperationSupport().
			checkPreconditions();
		try {
			context.resource().delete();
			return Response.noContent().build();
		} catch (ApplicationExecutionException e) {
			throw diagnoseApplicationExecutionException(context, e);
		} catch (ApplicationContextException e) {
			throw new InternalServerException(context,e);
		}
	}
@Override
	public Response deleteResource(OperationContext context) {
		context.
			checkOperationSupport().
			checkPreconditions();
		try {
			context.resource().delete();
			return Response.noContent().build();
		} catch (ApplicationExecutionException e) {
			throw diagnoseApplicationExecutionException(context, e);
		} catch (ApplicationContextException e) {
			throw new InternalServerException(context,e);
		}
	}
@ Override public Response deleteResource ( OperationContext context ) { context . checkOperationSupport ( ) . checkPreconditions ( ) ; try { context . resource ( ) . delete ( ) ; return Response . noContent ( ) . build ( ) ; } catch ( ApplicationExecutionException e ) { throw diagnoseApplicationExecutionException ( context , e ) ; } catch ( ApplicationContextException e ) { throw new InternalServerException ( context , e ) ; } }
TODO: This could be improved by returning an OK with an additional
description of all the resources that were deleted as a side effect.
TODO : This could be improved by returning an OK with an additional description of all the resources that were deleted as a side effect .