More than 30 residents were displaced after a fire swept through an apartment complex in the northwest valley.