I have a raster file which shows the land suitability of a country. I have masked this on top of a shape file which is the country itself. I want to only keep parts of the shape file that overlap with the raster file. Some errors that I could possibly run into are the CRS projections of each file. 

Could I get some guidance on how to remove unwanted parts of the shape file