A simple excretory organ of many invertebrates, consisting of a tube through which waste products pass to the exterior.