Deleting All Snippets and Folders in SnipVault

Written By mark@uipress.co

Last updated 12 months ago

There may be situations where you need to completely reset your SnipVault installation by removing all snippets and folders. This guide explains how to safely perform this operation.

When to Delete All Snippets

You might want to delete all snippets and folders when:

  • Migrating to a new code organisation system

  • Cleaning up after testing or development

  • Starting fresh with a new project

  • Troubleshooting issues with corrupt snippets

Accessing the Delete Function

  1. Log in to your WordPress admin dashboard

  2. Navigate to Settings β†’ SnipVault or go to /wp-admin/options-general.php?page=snipvault#/

  3. Click the Settings icon (gear/cog) in the top-right corner of the SnipVault interface

  4. The settings modal will appear with the "Plugin settings" section visible

Deleting All Snippets and Folders

  1. In the settings modal, locate the "Delete snippets & folders" section

  2. Click the Delete button (red button)

  3. A confirmation dialog will appear asking you to confirm this action

  4. Confirm your choice to proceed with deletion

Important Warnings ⚠️

  • This action cannot be undone. All your snippets and folder structure will be permanently deleted.

  • All snippet files will be removed from the server.

  • Any code currently being executed via autoloaded snippets will stop functioning immediately.

  • Custom plugin exports created from snippets will not be affected.

After Deletion

Once the deletion is complete:

  1. You'll be returned to an empty SnipVault interface

  2. All file storage related to snippets will be cleared

  3. Your SnipVault settings (including license key) will remain intact

  4. You can begin creating new snippets and folders from scratch

Recommended Precautions

Before deleting all snippets and folders:

  1. Backup your code: Export any important snippets or make note of critical code

  2. Document your folder structure: Take screenshots of your organisation if it's complex

  3. Notify team members: Ensure everyone is aware of the upcoming changes if in a team environment

  4. Check dependencies: Verify if any site functionality depends on your snippets

This reset function gives you a clean slate to work with while maintaining your SnipVault installation and configuration.