This is how you can remove your media from post editor and also the text tab where people can add html code.
Note!!! This will disable these options across the board. So if you need it to be post specific. Go find another solution.
Also I hope you have a child theme or else you are cutting corners and your stuff
will likely break with updates for your theme.
Paste the below code into your functions.php file inside your theme folder.