I'm a bit confused over your issue. I suggest you call Apple Support and have them talk you through the problem. It's one of those issues where you need a conversation in real time to know what to suggest.
It's possible when you installed macOS that you auto selected to encrypt your drive. However, I don't see how this could stop you from erasing the drive in Disk Utility while booted from Recovery Drive.
Could you post a screen shot of what you are seeing that shows your drive is locked. If not, at least give a full description of what you are seeing.
I did, but I had gotten in and was able to both unlock my firevault SUCCESSFULLY, as well as change One. Opt of at least a VERY-PARTIAL AMOUNT OF JUST ABOUT ALL MY INFO W/ only half or so backed up, but enough to have an additional way to boot it.. however even after trying every normal, and a dozen or so different methods- none worked for me, and I made sure to reset the P-RAM between attempts (along with checking the firevault and the encryption settings are still the way they needed to be) I've also been VERY patient and have taken my time...etc. however, I'm at a loss at This point! Everything I've ran through the 'First Aide' they're are (now... not at first, but I fixed that) PASSING ALL OF THE TESTS PERFECTLY... and Quickly too! It's been all day & I have work I desperately need it for.... as I've gotta run several programs out of the Adobe CC to work with the whole time- I don't think I can do what I need "quick-enough" to not have it working here at anytime now-
But that's why the hard drive is locked because I Reformatted the drive
Use Disk Utility to erase and reformat the drive by booting into the Recovery Drive.
About macOS Recovery - Apple Support
You should be able from Recovery Drive to erase a drive. Did you set File Encryption?
How do you do that the File Encryption?
Hello- let me get there and i'll take u "INTO" my problem here
Macbook hard drive locked