Skip to content

This tool is developed to assist mainly developers and testers who run into frequent problem of deleting temporary artifacts. Using this tool, you can create profiles of frequently deleted locations and folders to delete.

License

md-owes/directory-deleter

Repository files navigation

directory-deleter

This tool is developed to assist mainly developers and testers who run into frequent problem of deleting temporary artifacts. Using this tool, you can create profiles of frequently deleted locations and folders to delete.

PreRequisites

The following pre-requisites have to be installed or configured before running this tool

  • Ensure you have dotnet 7 SDK and above (latest stable dotnet sdk is preferable)

To work on this tool you need to

  • Ensure you have .Net MAUI workload installed
    • run the below command which will install maui if not installed already
      dotnet workload install maui
      
    • If using Visual Studio Code then the C# Dev Kit extension is required which will add the build and run pipelines

Installation

For MacOS, use the package file named directory-deleter-v{VERSION}.pkg, for Windows server use the exe directory-deleter-v{VERSION}.exe and for Windows 10 & 11 use the msix file directory-deleter-v{VERSION}.msix

To install directory-deleter on Windows 10 & 11, you need to install the public key certificate first. The certificate is named directory-deleter.cer and it should be installed in Trusted People as mentioned in Microsoft documentation for store apps

To enable logging of issues in directory-deleter

  • On Mac, you need to execute the following command in terminal
    launchctl setenv DD_EnableLogs 1
    
  • On windows, you need to set system environment variable either manually or via below command
    setx DD_EnableLogs "1" /M
    

Now you will see a new file created at the following locations

  • On Mac, file named directory-delete.log will appear in /Users//Library
  • On Windows, file named directory-delete.log
    • if it is exe then location will be C:\Users<username>\AppData\Roaming<username>\c5a240f0-6866-4aa3-8d34-9c682b0cf217\Data
    • If it is msix then location will be C:\Users<username>\AppData\Local\Packages\c5a240f0-6866-4aa3-8d34-9c682b0cf217_\LocalState

Note: On Windows the log location will have a static GUID (c5a240f0-6866-4aa3-8d34-9c682b0cf217) in its path, this GUID is a hardcoded GUID for this app and can change in future.

After changing the value of environment variable, you need to close and open the app again for changes to take effect.

Usage/Examples

Enter the required information

Save as a profile

Clear out filled details

Load saved profile

Tech Stack

Application: Dotnet MAUI with C# language

Authors

Contributing

Contributions are always welcome! Shoot a mail if you would like to become a contributor.

License

GPLv3

About

This tool is developed to assist mainly developers and testers who run into frequent problem of deleting temporary artifacts. Using this tool, you can create profiles of frequently deleted locations and folders to delete.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published