chore: delete relation rows when deleting the factory