Why would you do that? Then, there would be nothing to be spent by you.
Just invest those you think you can afford and have something left for yourself and for emergency purposes. That is not how investing should be. It is suicide. Actually this is a dumb question but I think you need some light.