I had almost forgotten about the “Mosquito” devices for deterring youths that became ubiquitous in some areas during the late 2000’s and early 2010’s.
They were quite expensive and I know of a few people who got annoyed and specifically vandalised them due to the annoying sound.