Change to $rs->delete_all to trigger cascade actions