add support for deletion cursor and delete all