That is the worst analogy I think I've ever heard. A better analogy is, if you want more hard drive space, stop installing stuff and/or delete more stuff than you install.
This is not complicated. The calories are listed on everything you eat. Eat fewer of them until you start losing weight.