Change method $http.delete() to $http['delete']()