Add api method to remove all external cursors