@Path("/{spaceID}")
    @DELETE
    public Response deleteSpace(@PathParam("spaceID") String spaceID,
                                @QueryParam("storeID") String storeID) {
        String msg = "deleting space(" + spaceID + ", " + storeID + ")";

        try {
            log.debug(msg);
            return doDeleteSpace(spaceID, storeID);

        } catch (ResourceNotFoundException e) {
            return responseNotFound(msg, e, NOT_FOUND);

        } catch (ResourceException e) {
            return responseBad(msg, e, INTERNAL_SERVER_ERROR);

        } catch (Exception e) {
            return responseBad(msg, e, INTERNAL_SERVER_ERROR);
        }
    }
@ Path ( "/{spaceID}" ) @ DELETE public Response deleteSpace ( @ PathParam ( "spaceID" ) String spaceID , @ QueryParam ( "storeID" ) String storeID ) { String msg = "deleting space(" + spaceID + ", " + storeID + ")" ; try { log . debug ( msg ) ; return doDeleteSpace ( spaceID , storeID ) ; } catch ( ResourceNotFoundException e ) { return responseNotFound ( msg , e , NOT_FOUND ) ; } catch ( ResourceException e ) { return responseBad ( msg , e , INTERNAL_SERVER_ERROR ) ; } catch ( Exception e ) { return responseBad ( msg , e , INTERNAL_SERVER_ERROR ) ; } }
see SpaceResource.deleteSpace(String, String);

@return 200 response indicating space deleted successfully