It typically has to be fenced off to keep people from vandalizing the city will usually work with you on getting it cleaned up as far as time frame
Fire department and city inspector will declare a building safe or not. If safe, your insurance coverage will determine extent of restoration and replacement. Big fixes will require building permits, etc.
Thanks! Your answer is awaiting moderation.