cascade delete and re-use query