What is the meaning of the word "housecleaning"?

Definitions:

  1. (figurative) the act of reforming by the removal of unwanted personnel or practices or conditions copy to clipboard noun
    • more housecleaning is in store at other accounting firms copy to clipboard
  2. the act of cleaning the rooms and furnishings of a house copy to clipboard noun
    • efficient housecleaning should proceed one room at a time copy to clipboard