Each program has its purpose, and if not, it is deleted

How simple. However, how to recognize that purpose? And who assesses that there is none anymore? Who will shut me down?