If you bought the time share for personal use, then just as in the case of a sale of a principal residence, no loss is allowed. If you bought the time share for investment purposes, you may be able to take the loss as a long-term capital loss.
An exchange of similar assets used in a business or held for investment on which gain may be deferred.