You must first remove all the telescope reference in your code before running composer remove laravel/telescope.
config/app.php
, under providers
array, remove the Telescope there.app/Providers/TelescopeServiceProvider.php
.telescope.php
in config
folderbootstrap/cache/config.php
Then finally you can run composer remove laravel/telescope
.
-----------
If you only want to stop running telescope, in file .env, set
TELESCOPE_ENABLED=false