Self-cleaning public toilets, that worked exactly like this, went through a bit of a phase in Australia 10-20 years ago. They started decommissioning them after they began trapping children during the cleaning cycle: <a href="http:&#x2F;&#x2F;www.theage.com.au&#x2F;news&#x2F;national&#x2F;auto-toilets-a-flush-in-the-pan&#x2F;2006&#x2F;04&#x2F;15&#x2F;1144521546986.html" rel="nofollow">http:&#x2F;&#x2F;www.theage.com.au&#x2F;news&#x2F;national&#x2F;auto-toilets-a-flush-...</a>.