Erase button

I try to model ethical concepts with thought experiments to investigate my own uneasiness. I do not wish for anybody to get harmed by these, but want to share them nonetheless to learn from possible discussions.

There is a room with a completely white interior. In the center of the room you can see a small white table with a button. If you press this button down, you instantly cease to exist. This button only works for those who press it with the conscious understanding of its consequences and with the intention to end their existences. Additionally there is no delay to its effect. You immediately lose all of your perception. You do not feel anything after pressing the button. The perception simply ends. If you consider all of the suffering in the world and if possible, should such a room be provided?

Supplementary question: Which conditions prevent suffering?