try {
            const layer = await LayerService.get(id, ctx.request.headers['x-api-key']);
            await LayerService.delete(layer, ctx.request.headers['x-api-key']);
            ctx.set('cache-control', 'flush');
            ctx.body = LayerSerializer.serialize(layer);