During separation, transferred property to myself and 'bought out' spouse. Is this a 'sale of property' for me & would legal Fees for the transfer be tax deductible?

Does this transaction need to be declared as a "sale of property" by myself?  I still live in the principle residence. Spouse has been removed from the deed.