A man who failed to knock down his illegal extension has appeared before court.