Placement of data table delete/edit button

Using material design and making a desktop application.

Should I add the delete and edit button on each row like this:

1

or in the Color zone at the right (near the 3 dots):

2