SQL Delete 40 thousand failed jobs

Tags: #<Tag:0x00007f28b34de918> #<Tag:0x00007f28b34de850>

I’m cleaning up a Hangfire database. There are thousands of failed jobs and about 10 scheduled jobs. I do not want to delete the scheduled or processing jobs.
Can I just Delete rows from the Jobs table where the state is “Failed”?
Or will this mess up the hangfire state?