to replace

verb
  1. To take the place of something or someone, often by substituting or succeeding them, especially when the original is no longer suitable, functional, or available. verb
    The company decided to replace the old machinery with newer models.
    She replaced the broken window with a new pane of glass.
  2. To restore or return something to its original position or condition after it has been moved, removed, or altered. verb
    Please replace the books on the shelf after you finish reading.
    He replaced the lid on the jar tightly.
  3. To provide a substitute or alternative for something that is missing or unavailable. verb
    If you don't have sugar, honey can replace it in the recipe.
    The new software will replace the outdated version.