Demons leave when we speak the name of Jesus but you cannot rebuke something someone has willfully agreed with. Past agreements made apart from God must be renounced. If repenting shuts an open door, renouncing locks the door. When we have used our authority to make agreements with the enemy we must use our authority to break past agreements.