The British wanted Delhi to forget its Mughal past. The area around the Fort was completely cleared of gardens, pavilions, and mosques (temples were left intact) for security reasons. Mosques in particular were either destroyed or put to other uses. The Zinat-al-Masjid was converted into a bakery. No worship was allowed in the Jama Masjid for five years. One-third of the city was demolished. Its canals were filled up. In the 1870s, the western walls of Shahjahanabad were broken to establish the railways and to allow the city to expand beyond the walls. The Delhi College was turned into a school and shut down in 1877. The British now began living in the sprawling Civil Lines away from the Indians in the Walled City.