Toronto police say a pipe bomb was detonated Friday in a North York park.

Officers said city workers discovered the bomb shortly before noon when they were cleaning up after an earlier garbage fire in Queen’s Greenbelt park, near Keele Street and Lawrence Avenue West.

“A person was there cleaning out some garbage bins and discovered a metal pipe that was capped off at both ends,” said spokesman Gary Long. “The person did think it was some sort of explosive device.”

Police confirmed that the item was a pipe bomb.

The bomb squad was called in to detonate it, and there were no injuries.

Police are investigating where the device came from.