I need to delete all the vector 'part' that it's outside the yellow raster region.
How can I do it?
Yellow = raster
Black = vector
1) Polygonize the raster: create a polygon of the yellow area (https://grass.osgeo.org/grass64/manuals/r.to.vect.html)
2) Clip the black vector with the yellow polygon (https://grass.osgeo.org/grass76/manuals/v.clip.html).
you don't erase the black vector, instead you extract the part you want to keep