To disable any shipping method like flat rate : Go to Admin > Store > Configuration > Click on Shipping methods under Sales tab, it will show you all methods.
Here you can disabled any method by setting "Enabled" option to No and click save config button.
It may be helpful for you.
If issue solved , Click Kudos & Accept as Solution