remove a livewire component
php artisan livewire:delete foo
# Removes Foo.php & foo.blade.php
php artisan livewire:delete foo --force
# Removes without confirmation prompt
In order to remove a livewire component you can use the php artisan livewire:delete
command. You can see an example of how to use the command in this code snippet.
Here is what the above code is doing:
1. Deletes a livewire comonent called `foo`
2. Passing the --force flag will force the component to be deleted