I had installed Algolia_AlgoliaSearch extension via composer in Magento 2.
Now I want to remove this extension from the website. So that I have deleted the complete files and folders of the extension.
After that running upgrade command then I am getting an error:
PHP Warning: require(/var/www/html/new/vendor/composer/../algolia/algoliasearch-magento-2/registration.php): failed to open stream: No such file or directory in /var/www/html/new/vendor/composer/autoload_real.php on line 71
PHP Fatal error: require(): Failed opening required'/var/www/html/new/vendor/composer/../algolia/algoliasearch-magento-2/registration.php' (include_path='/var/www/html/new/vendor/magento/zendframework1/library:/var/www/html/new/vendor/php unit/php-file-iterator:/var/www/html/new/vendor/phpunit/phpunit:/var/www/html/new/vendor/symfony/yaml:.:/usr/share/pear:/usr/share/php') in /var/www/html/new/vendor/composer/autoload_real.php on line 71
How to fix this?