Add Clear method

Added the clear method to the api