Composer 1.x and 2.x
Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
composer remove vendor/package
Obviously you’ll need to remove references to that package within your app.
I’m currently running the following version of Composer:
Composer version 1.0-dev (7b13507dd4d3b93578af7d83fbf8be0ca686f4b5) 2014-12-11 21:52:29
Documentation
Updates
- 26/10/2020 – Updated answer to assert command works for v1.x and v2.x of Composer
Related Posts:
- How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
- global variable for all controller and views
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- AES Decryption in Python when IV and Value provided separately
- Could not open input file: artisan
- Minimum Working Example for ajax POST in Laravel 5.3
- Facebook OAuth “The domain of this URL isn’t included in the app’s domain”
- laravel throwing MethodNotAllowedHttpException
- Class ‘App\Http\Controllers\DB’ not found in Laravel 5 Controller
- Laravel – Model Class not found
- How to install pip with Python 3?
- How to completely remove Python from a Windows machine?
- Relative imports – ModuleNotFoundError: No module named x
- How to uninstall Eclipse?
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How can I solve “java.lang.NoClassDefFoundError”?
- What is __init__.py for?
- count() parameter must be an array or an object that implements countable in laravel
- What is __init__.py for?
- beyond top level package error in relative import
- beyond top level package error in relative import
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- ModuleNotFoundError: No module named ‘sklearn’
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Tensorflow: why ‘pip uninstall tensorflow’ cannot find tensorflow
- Python error: AttributeError: ‘module’ object has no attribute
- How to uninstall mini conda? python
- Java Package Does Not Exist Error
- What’s the difference between a Python module and a Python package?
- Expected status code 200 but received 500
- Whats the point of running Laravel with the command ‘php artisan serve’?
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- Download TS files from video stream
- How to uninstall a Windows Service when there is no executable for it left on the system?
- laravel updateOrCreate method
- How to listen messageSent event in laravel 5.5
- How to fix “Attempted relative import in non-package” even with __init__.py
- Can’t import my own modules in Python
- When to generate a new Application Key in Laravel?
- Laravel 5.2 Storage::makeDirectory($dir) is not creating directory
- How to Reinstall Broken npm
- What’s the difference between a Python module and a Python package?
- How to uninstall git-for-windows & re-install in new place?
- Trying to get property of non-object – Laravel 5
- Block-scoped declarations not yet supported outside strict mode
- Laravel 5 Class ‘Collective\Html\HtmlServiceProvider’ not found on AWS
- Laravel 5 MethodNotAllowedHttpException in RouteCollection.php line 201:
- How to find out which package version is loaded in R?
- How to Create Multiple Where Clause Query Using Laravel Eloquent?
- Laravel 5 Clear Views Cache
- How to make rpm auto install dependencies
- Composer: Command Not Found
- What’s the opposite of ‘make install’, i.e. how do you uninstall a library in Linux?
- What is the difference between require() and library()?
- TokenMismatchException in VerifyCsrfToken.php Line 67
- cURL request in Laravel
- No query results for model [App\Products] Laravel
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- Removing all installed OpenCV libs
- How to completely uninstall Android Studio on Mac?
- How to install a specific version of package using Composer?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best practice way to delete user meta data during plugin uninstall?
- Uninstalling a plugin: delete all options with specific prefix
- wpdb::prepare was called incorrectly
- Is it appropriate to remove custom posts and terms on plugin uninstall?
- How does uninstalling WordPress plugins work?
- Plugin uninstall: why run dbDelta after $wpdb->query($drop_sql)
- Is it possible to uninstall one plugin from within another plugin?
- Delete options from all blogs on plugin uninstall from a network/multisite
- Example of uninstaller routine to remove all custom theme options from wp_options
- Plugin Uninstall and Deactivate via Options Menu
- How to check what plugins used to be on a WordPress installation?
- Global variables during plugin activation , deactivation and uninstall operarations
- Query users by capability – uninstall/deactivate callback
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- Where could I see uninstallation directives for a plugin?
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- Clearing caches on plugin uninstall
- uninstall.php file in Plugin to clean DB
- How can I completely disable a WordPress installation?
- How to remove traces from widget during uninstallation
- Delete and perform a fresh install of WordPress
- Remove settings if theme is deleted?
- Plugin development: delete options when updating to a new version
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?
- Does plugin’s uninstall.php file have access to the plugin ‘s object?
- Remove .htaccess portion upon plugin deactivation?
- Plugin retrieving results even after uninstallation
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- How Do I Uninstall a Current WordPress Theme and Install a Fresh Theme
- Uninstalling IntenseDebate
- How to delete Crisp Chat plugin completely?
- check_admin_referer fails on new AJAX plugin uninstall with “Are you sure you want to do this?”
- uninstall a theme programmaticlly
- How to remove links generated by SEO-smart-links?
- Scripts don’t enqueue after removing plugin