Hi!
Thanks for a very useful plugin! Is there a way to trigger the removal of products using a CRON?
Hi there
We have an issue where clicking the ‘remove all products’ button is removing ALL the images from the media library. Can you help please as this has been an issue for a while?
Many thanks.
Mike Sutherland
]]>Hey Gabriel,
Thanks for the plugin!
Does it remove images also? I see it was a “feature” request 5 years ago.
Obrigado =]
]]>I have ashared hosting with 6gb ram and 6 cpu, but this plugin is deleting just a bit less of 40 products for each minute and they are also without images.. Ho to improve the velocity of this plugin? Because I ahve to delete more of 10.000 products and at this velocity it would take hours..
]]>After doing click on the plugin button, then I get a white page with this error:
Sorry, you are not allowed to access this page.
And also wrdpress says:
The plugin woocommerce-remove-all-products-master/plugin.php has been deactivated due to an error: Plugin file does not exist.
I am using woocommerce last version, wordpress 5.4.1 and php 7.4. Any helps?
]]>This seems to be because of the $maxium_time setting in the wc_remove_all_products_display_default_tab() function. ini_get(‘max_execution_time’) only returns a value if max_execution_time is set in the php.ini file, which isn’t always the case on some servers. If you have max_execution_time set to 0 (unlimited), this will also cause this bug.
Checking for a false or 0 $maximum_time and adjusting as appropriate fixes this:
$maximum_time = ini_get('max_execution_time');
// PHP default if max_execution_time could not be retrieved
if ( $maximum_time === false ) {
$maximum_time = 30;
}
// Set a suitably high default if max_execution_time is unlimited
if ( $maximum_time <= 0 ) {
$maximum_time = 86400;
}
]]>
I have a question before proceeding with complete wipe out of 2500 items.
Will the old sku can be used again when i sync my db again..?
..or will the wp replace sku’s with auto-generated codes…?
The same question applies with variable products.
any help, is much appreciated.
]]>Here is a screenshot: https://d.pr/i/9MQL6n/RzpBLvoWzO
Here is the error:
Fatal error: Uncaught Error: Call to a member function get_formatted_name() on boolean in /srv/www/romaycorp/htdocs/wp-content/plugins/woocommerce-remove-all-products/woocommerce-remove-all-products.php:141 Stack trace: #0 /srv/www/romaycorp/htdocs/wp-content/plugins/woocommerce-remove-all-products/woocommerce-remove-all-products.php(86): wc_remove_all_products_display_default_tab() #1 /srv/www/romaycorp/htdocs/wp-includes/class-wp-hook.php(286): wc_remove_all_products_show_page('') #2 /srv/www/romaycorp/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #3 /srv/www/romaycorp/htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /srv/www/romaycorp/htdocs/wp-admin/admin.php(224): do_action('woocommerce_pag...') #5 {main} thrown in /srv/www/romaycorp/htdocs/wp-content/plugins/woocommerce-remove-all-products/woocommerce-remove-all-products.php on line 141
Hi,
Does the product removal start with the oldest published products or by title or what? Thanks
]]>Hi,
Is it not possible to increase the max amount to delete at once from 250 to like 10,000. Or make settings to have 250|500|1000|10,000 products to delete at once?
]]>I dont mean this personally, but why do developers almost never cleary mention where you can find the plugin when installed.. A lot of times I have to use CTRL F to search and highlight it and then go looking for it in every submenu..
just make in plain and simple…
1 Upload plugin files to your plugins folder, or install using WordPress’ built-in Add New Plugin installer
2 Activate the plugin
3 [plugin name] can be found under……
I cant find it.
]]>Today I have found King Rosales blog article where he shows his solution to remove products (and it’s data) from WooCommerce.
Here it is: https://www.kingrosales.com/blog/how-to-properly-delete-all-woocommerce-products/
Hope this helps when my plugin doesn’t.
Cheers,
Gabriel
I have tried the max_timeout value change (from 60 to 6000) but only still get 1 deletion out of +11,485 and the error “Stopped processing due to imminent timeout.”
I see some folks have luck getting at least the capitated 250 records. I can only ever get one.
Might you know the query I could enter into MySQL that would simply remove all the products?
I have searched and found one query that does not work for me. I hoped your plug in would be essentially a non-SQL execution point and accomplish the same.
Query I had found:
DELETE relations.*, taxes.*, terms.*
FROM wp_term_relationships AS relations
INNER JOIN wp_term_taxonomy AS taxes
ON relations.term_taxonomy_id=taxes.term_taxonomy_id
INNER JOIN wp_terms AS terms
ON taxes.term_id=terms.term_id
WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type=’product’)
Result is:
Output from SQL command DELETE relations.*, taxes.*, terms.* FROM wp_term_relationships AS relations INNER JOIN wp_term_taxonomy AS taxes ON relations.term_taxonomy_id=taxes.term_taxonomy_id INNER JOIN wp_terms AS terms ON taxes.term_id=terms.term_id WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type=’product’) ..
No data returned
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>I have over 4000 products at the moment, trying to remove ALL products but every run is only completing exactly 250. It says the correct total “Found” but only does 250, is this a limitation you have imposed? (Not very useful when trying to remove all products as the title indicates)
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>Hello
I installed this plugin and have over 5,000 products. I keep an 502 error and its only deleting 100 at a time.
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>The plugin work only for 1 delete item.
I have 1388 products not deleted.
In log : Stopped processing due to imminent timeout.
In my Php.ini, i have already :
max_execution_time = 900 ; Maximum execution time of each script, in seconds
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>First things first: This plugin worked exactly as described and I’m very happy with the result ??
This is more of a feature request for future versions.
It would be really nice if the plugin removed any attachments (media) that is associated with the products being removed, as I’ve had to do so manually.
Other than that, really decent plugin. Thanks.
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>when i open a plugin window i see empty page at “WooCommerce Remove All Products” tab, but see Log at “Log” tab. i have > 6K products
i think that trouble began after i update woocommerce to 2.3.5 version.
Any ideas?
Thanks
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>just installed this, selected “Remove All Products” from the menu…
all I see is this error message:
“Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 81 bytes) in /home/zibmedia/webapps/canvasseatcovers/wp-includes/wp-db.php on line 1981”
I had imported 3809 products from a CSV file – I still have 3809 products – this plugin doesn’t seem to work?
using WP 4.1.1 / WC 2.3.5
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>Hi,
Please help ??
After selecting the “Delete all products, no confirmation will be given” button I receive a message stating “One product has been deleted” – “Stopped processing due to imminent timeout.”
Selecting the ” Continue deleting all products…” button continues to only delete one product at a time.
Currently there are 1400 products in the store.
Kind regards,
Martin
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>Selecting “Remove All Products” from the Woocommerce menu gives me a page with two tabs, but no content. The first tab is completely empty. The second tab (Logs) says log started and the date/time I loaded the page.
No action, no feedback, no error message. Deleting this plugin.
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>Just installed the plugin and clicked to start. Removes 1 product and then I get “Stopped processing due to imminent timeout.” Continue deleting….
click to continue and after 1 product removed, boom stops again. This is on a local host setup, running Velocity theme.
I DID NOT dig into this since the plugin is so new. Just wanted to toss this out FYI.
What a great tool this is if it works. With the conflicts that are showing up in having to totally revise products and images with 4.0 WP and 2.2 WooCommerce and theme issues this would really save some time.
Good Luck
https://www.ads-software.com/plugins/woocommerce-remove-all-products/
]]>