Police were called at 9.46am on Sunday to a report of a suspicious package in the grounds of Thornbury Barracks.
Road closures were put in place on Bradford Road at the junctions of Gain Lane and Woodhall Lane and traffic was diverted through Pudsey.
A cordon was also placed around the immediate area and a small number of houses were evacuated.
Officers from the Explosive Ordnance Disposal team were deployed to the scene and removed the object to a safe area, where a controlled explosion was carried out.
Initial investigations suggest the package did not contain any explosives.
The roads have now reopened and residents have been allowed to return to their homes.
West Yorkshire Police would like to thank the public for their patience and apologise for any inconvenience that may have been caused.
Enquiries are on-going and anyone with any information is asked to contact police at Leeds on 101.

Fare Dodger Admits Assaulting Police Officer at London Tube Station
Aylesbury Drug Dealer Jailed for Two Years
Leeds in Running to Host 2035 FIFA Women's World Cup Matches
Bradford Hospital Staff Unite to Rescue Stray Cat Family
Richmond Council calls for West London Orbital extension
Seven jailed for helping Iranian nationals enter UK illegally
Leeds man jailed after naming false driver in speeding case
Final four men jailed for child sexual abuse in Bradford case
London SEND School Becomes First in England to Win World's Best School Prize
New and Improved Bus Services Launch Across Blackburn with Darwen
Reopening Keighley Tip Unlikely to Reduce Fly-Tipping, Council Warns
Leeds Economy Strengthens as City Targets 100,000 New Jobs
Alim OnAir
Remix Saturdays
Legal Show
Bhangra Nights