Deductions & credits

I meant writing off the sales tax. When I purchased a car I was able to write off the sales tax. Can I write off specially the sales tax for the contractor work, the materials or both?