Remove unused CSS/Js for seo

Hi , facing difficulty to understand how to Remove unused CSS/Js without braking website.
Any tool or application for specific way that can use for this.