Does your USB drive (assuming you mean thumb drive and not hard drive) have a mechanical switch on it somewhere? If so try putting it in the other position. Some thumb drives have this to protect it from being inadvertently written to or formatted.
If that's not the case, it gets a little more complicated.
Hello,how can i remove write protection in my usb drive
You may need to “Partition the drive“.
1.Run diskmgmt.msc in Run.
2.In the disk management window, select the pen drive, right click on it and click on Format.
3.Now choose the File System and Allocation Unit Size and do not check the boxes below.
Click OK and the drive will be reusable after this.