Separate the SPARQL deletes so if one doesn't match the others still work

Fixes #564