You can reset a Fitbit Flex to its factory settings as long as you have an official Flex charger and a paperclip or similar tool. Here's how to do it.
To format a hard drive before you start using it in Windows, use the Disk Management utility; on a Mac, use Disk Utility.