refactor deleteLike method as general