SQL Delete 40 thousand failed jobs

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?