Apple - Can I re-format OS X drive without removing it from my MacBook Pro?
You don’t need to remove the HDD and no need for second Mac.
Boot the MacBook Pro from the USB stick (that you made with OS X El Capitan 10.11)
Using Disk Utilities in the Tools menu, you can reformat the hard drive as part of the installation process.
To boot using the USB, restart your MacBook and press and hold the Option key and Select the USB drive to boot.
Note: you are operating (using OS X) from the USB
There is no need for the USB stick, you can do a clean install from the recovery partition if it's available. Depending on the origin of the USB stick, it might even be a bad idea to use it at all.
Restart into recovery mode, delete the current installation and reinstall the operating system for the same result: https://support.apple.com/en-us/HT204904
Can I re-format OS X drive without removing it from my MacBook Pro?
Yes.
You need not remove the hard drive from machine A or connect machine A to machine B to do this.
You simply need a bootable (USB) installer for OS X El Capitan 10.11. Once you have the bootable installer handy, simply leave the hard disk into machine A, plug-in the bootable USB installer, and boot off it.
Once booted, simply start Disk utility, erase the hard drive and perform fresh install of OS X El Capitan 10.11 on it.
You can find the instructions to create a bootable installer for OS X El Capitan 10.11 here:
- How to create a bootable installer for macOS
To boot from the USB, simply restart your MacBook Pro with the installer USB drive plugged-in, and press & hold the Option key. You'll be prompted to select the boot media. Select the USB drive to boot.
For detailed instructions, refer to the Use Startup Manager section in the Apple Support article, How to select a different startup disk.