[webui][api] Fix deletion of commented packages/projects