How do I deduct the expense of demolition of a building on a rental property to improve it to put it on market later on

I was ordered by the city to have an old building demolished, can I deduct this expense ?