I have upgraded my site and migrated over to a new server. So basically I have my old store in a new location.

For this installation, I want to remove every product from my shop that has been migrated over. Basically I am going to add different products to this installation. Each product has an edit and delete button in the views. When I select delete for each product, I then need to confirm each product for deletion. Since I have 40 pages of products this is going to take me a very long time. The problem is there is no mass product delete.

Is there a way to delete every product in the products view page easily? I want all the product fields and product attributes to stay, because I am going to add like products again. I just want to empty all my current products in the shop. Or perhaps add a checkbox in the products view to select all and then add a delete button on the bottom?

Comments

It might help if you

It might help if you mentioned if you are using Drupal commerce or Ubercart.

I am not 100% sure because

I am not 100% sure because someone else designed this orginaly. But in the admin>structure>modules I see: Commerce and Commerce (contrib). So I am assuming it's commerce.

Since you can list products

Since you can list products with views I am guessing you can use the view bulk update module to create a view of all products similar to the admin content page with checks boxes and actions (including delete).

This worked and it was fairly

This worked and it was fairly easy. I did have the module already installed, all I had to do was activate, copy a few of the fields from the other view and add the actions. Then delete the new view I created and deactivated the bulk module again (don't want my client accidentally using this). Thank you!

Are you using CCK?

If you're using CCK the easiest way to delete all products is to navigate to admin/content and use the filter (Show only items where) to only show shop items, then click the check box beside the "TITLE" to select all the nodes, then finally use the update options to "update" the selected content to the "delete selected content", click update and presto! no more shop items.

Saving the internet, one file at a time.
If I helped, Pay it forward or give me a cookie ;)

nateman332 I do not have CCK.

nateman332 I do not have CCK. I looked it up in the distributions and there were many distributions with the CCK name, so I was confused at first. When I finally did find it, the distribution file was hard for me to read and understand; so I figured implementing wasn't going to be easy. I personally have not installed a new module yet. The other solution was already installed. So I just activated it, created a new view with one of the fields and deleted. It worked fine.

I understand your solution would have been a little easier. But in the future I should not need to do this again, and I already had the module implemented. I do appreciate your time; thank you.