You can't deduct the full amount.
If you have capital gains from selling other assets, you deduct the loss against them first. If not you can only deduct up to $3,000 from your other income( $1,500 if you're married filing separately) and you can carry forward the rest to later years.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"