Wp gf entry delete (WP-CLI)
Naar navigatie springen
Naar zoeken springen
$ wp help gf entry delete NAME wp gf entry delete DESCRIPTION Deletes an entry. SYNOPSIS wp gf entry delete <entry-id>... [--force]
Met de Boolean optie --force
worden entries direct verwijderd, ipv. verplaatst te worden naar de prullenbak.
Voorbeelden:
# Delete a form entry ######################################## # # Delete - Don't move it to trash # wp gf entry list 1 --format="ids" 1921 1920 1918 1909 1903 1898 1897 1896 1893 1889 1885 1884 1883 1882 1877 1876 1875 1867 1866 1863^C $ wp gf entry delete --force 1921 Success: Deleted entry 1921 # Trying out wildcard * to delete all ######################################## # # Some unexpected behaviour: # wp gf entry delete * Error: Entry with id dvb not found Error: Entry with id favicon.ico not found Error: Entry with id help.txt not found Error: Entry with id index.php not found Error: Entry with id license.txt not found Error: Entry with id list.txt not found Error: Entry with id login.txt not found Error: Entry with id malcare-waf.php not found Error: Entry with id order-ids.txt not found Error: Entry with id order_list.txt not found Error: Entry with id readme.html not found Error: Entry with id robots.txt not found Error: Entry with id text2.txt not found Error: Entry with id text.txt not found Error: Entry with id wp not found Error: Entry with id wp-activate.php not found Error: Entry with id wp-admin not found Error: Entry with id wp-blog-header.php not found Error: Entry with id wp-comments-post.php not found Error: Entry with id wp-config.php not found Error: Entry with id wp-config-sample.php not found Error: Entry with id wp-content not found Error: Entry with id wp-cron.php not found Error: Entry with id wp-includes not found Error: Entry with id wp-links-opml.php not found Error: Entry with id wp-load.php not found Error: Entry with id wp-login.php not found Error: Entry with id wp-mail.php not found Error: Entry with id wp-salt.php not found Error: Entry with id wp-settings.php not found Error: Entry with id wp-signup.php not found Error: Entry with id wp-trackback.php not found Error: Entry with id xargs not found Error: Entry with id xmlrpc.php not found # "--all" to delete all? Nope ######################################## # wp gf entry delete --all usage: wp gf entry delete <entry-id>... [--force] # No argument to delete all? Nope ######################################## # wp gf entry delete usage: wp gf entry delete <entry-id>... [--force] # Delete all entries form 1-3 ######################################## # wp gf entry delete --force $(wp gf entry list 1 --format="ids" --page_size=100000) wp gf entry delete --force $(wp gf entry list 2 --format="ids" --page_size=100000) wp gf entry delete --force $(wp gf entry list 3 --format="ids" --page_size=100000)