Principle
melacha she-eina tzricha le-gufahמְלָאכָה שֶׁאֵינָהּ צְרִיכָה לְגוּפָהּ
me-la-KHA she-AY-na tzree-KHA le-goo-FA
Labor not needed for its own purpose
A melacha done only to be rid of something, not for its intrinsic result; R. Shimon exempts, while the Mishnah's first view holds one liable (e.g. carrying out a corpse, Shabbat 10:5).
Where it comes up
1 mishnah