I recently purchased the property and was not responsible for the works in the building notice. Do I still have to comply?

Yes. Unfortunately, as the new owner of the property, you will inherit any non-compliance from previous owners and are fully responsible for any illegal building works on the property. At this point, you may wish to seek legal advice as to your rights to seek compensation from the previous owner. However, time is critical as you are limited to regulatory time restrictions to respond and act upon the building notice or order.