Drush for Drupal 6 had a plugin that allowed you to delete a view. That plugin's functionality was mostly rolled into drush for Drupal 7.
I have a view that can't be edited through the UI, and I was hoping the drush could solve the problem.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
I don't know of a Drush command for this, but if you know your view's machine name or ID wiping it from the database isn't too hard.
SELECT vid FROM views_view WHERE name = 'your_views_machine_name'; DELETE FROM views_view WHERE vid = id_from_above; DELETE FROM views_display WHERE vid = id_from_above;
That should be the last you ever hear from that view.
Or without doing a lookup for vid. Find the view id in the url, or html code.
For example in admin/structure/views/view/section_banner, section_banner is the view name.
delete views_display from views_display inner join views_view on views_display.vid = views_view.vid where views_view.name = 'view_name'; delete from views_view where name = 'view_name';