Added clear functions to the API bindings