Again, this was once rental property.
Yes, You are able to deduct attorney fees and other legal cost as long as the fees are related to a tax issue or to producing taxable income.