Business & farm

If the business is changed to a hobby, are you required to pay back the taxes from past deductions as a business?