Modify view in SharePoint Web Part

I created a discussion board and would like to hide the new discussion part as well as the views listed below and the line (divider) that is underneath that too.

Is there any kind of code to help in hiding that section?

I’m not sure where to turn to. I’ve gone down a rabbit hole and can’t find anything or anyone who has tried hiding this whole section.

enter image description here