Skip to main content

Install and Uninstall an Extension

php artisan extension:install Module Banner
php artisan extension:uninstall Module Banner

Installation resolves an available extension by type and name, then applies its lifecycle. Uninstallation can remove extension data through its migrations. Review the migration and dependency impact in a development environment first.

The --force-delete-plugin flag explicitly allows deletion of associated plugin instances during uninstall. It is appropriate only when those instances may be removed. For composed extensions, run commands against the root.