class FolderAPI extends APIService {

    @RequestMapping(value = "/api/folders/{id}", method = DELETE)
    @ApiOperation(value = "Remove a Folder")
    @Timed
    public ResponseEntity<String> removeFolder(@PathVariable final String id, final OutputStream output) {
        try {
            return getCommand(RemoveFolder.class, id).execute();
        } catch (Exception e) {
            throw new TDPException(APIErrorCodes.UNABLE_TO_DELETE_FOLDER, e);
        }
    }

}