Over Shabbos, the Shul in which I davened had a trash bin towards the back. This caused me to realize that I do not think that I have ever seen another permanent Shul sanctuary which had a garbage can in it. I also don't remember seeing a Yeshiva Beis Medrash with a garbage can in it.
I can hear how maybe it would be disrespectful to have a garbage bin in a Shul or Beis Medrash, but it's pretty convenient. Is there any halachic calculation involved in this? Was the Shul that I saw had a garbage can in violation of anything, and do they have something to rely on?