I am getting the error - "$cookies.remove is not a function" - when trying to clear the cookies in my angular application. As far as I can see I am following what the angular docs says, and also what has been said on this forum to remove cookies.
Here is my service which handles this,
app.service('authService', function ($cookies) {
    this.SetUsername = function (username) {
        $cookies.username = username;
    }
    this.GetUsername = function () {
        return $cookies.username;
    }
    this.clearCookie = function(){
        $cookies.remove("username");
    }
});
The get and set functions both work fine, it's just when actually trying to remove the cookie when calling the clear cookie function that i'm getting this issue.