To replace the battery in a Philips cordless vacuum FC6140, first ensure the vacuum is turned off and unplugged. Remove the battery compartment cover, typically located at the base of the vacuum, by pressing the release button or sliding it open. Take out the old battery and insert the new one, ensuring it is securely connected. Finally, replace the battery compartment cover and charge the vacuum before use.