How does that work? Never heard of doing that before.
It will get rid of most mammals ( including humans*). They don’t like the smell of urine ( ammonia) and will leave.
* I’ve often planned on taking a shopping trip or two day vacation when placed there. Have gotten rid of flying squirrels. Opossum and coons.