© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
26 replies
codeartisan

Delete Action Not Working

I am using a filament table component in my livewire application but the delete action instead redirects to the show details page
                ActionTable::make('delete')
                    ->label('Delete')
                    ->requiresConfirmation()
                    ->color('danger')
                    ->icon('heroicon-o-trash')
                    ->url(function ($record) {
                        return route('customers.delete', $record);
                    }),
                ActionTable::make('delete')
                    ->label('Delete')
                    ->requiresConfirmation()
                    ->color('danger')
                    ->icon('heroicon-o-trash')
                    ->url(function ($record) {
                        return route('customers.delete', $record);
                    }),
Solution
ActionTable::make('delete')
                    ->label('Delete')
                    ->requiresConfirmation()
                    ->color('danger')
                    ->icon('heroicon-o-trash')
                    ->action(function ($record) {
                        // Delete the record
                        if($record->delete()) {
                          Notification::make()
                            ->title('Delete record ' . $record->id . ' successfully')
                            ->success()
                            ->send();
                        }
                    })
ActionTable::make('delete')
                    ->label('Delete')
                    ->requiresConfirmation()
                    ->color('danger')
                    ->icon('heroicon-o-trash')
                    ->action(function ($record) {
                        // Delete the record
                        if($record->delete()) {
                          Notification::make()
                            ->title('Delete record ' . $record->id . ' successfully')
                            ->success()
                            ->send();
                        }
                    })
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Delete action is not working
FilamentFFilament / ❓┊help
2y ago
Table Delete Action global configuration not working
FilamentFFilament / ❓┊help
2y ago
Delete Action
FilamentFFilament / ❓┊help
3y ago
action not working
FilamentFFilament / ❓┊help
3y ago