Remove unused globals in the web api

Change-Id: I9ae428ed9f14f95c649953f62d729a9a9be7869b