By Richard Rost 39 days ago
Delete Temporary Files Automatically with VBA Kill
In this Microsoft Access tutorial, I'm going to teach you how to delete files using the VBA Kill command. Then I'll show you how to automatically delete temporary files when you close your database.
Adrian from Berwyn, Illinois (a Platinum Member) asks: I'm using the code that you showed in your "Export Report to PDF" video, and it works great, thank you! I'm able to send these PDFs in emails, but, after doing a bunch of them, I've got all these PDF files sitting around in my database folder. Is there a quick and easy way to delete them all from my database?
Members will learn how to use a PowerShell script to delete files and send them to the recycle bin, which the normal Kill command does not do.
Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to register on my YouTube Find User page so I can set up your account here on my web site. If you're not a member, Join Today!
Code Vault Link
TechHelp Access, VBA Kill command, delete temporary files, automatic file deletion, VBA file handling, on close event, delete PDF files, automate cleanup, Export Report to PDF, manage database folder, file deletion in Access, Access database cleanup, temp file cleanup, Order Invoice report, CurrentProject.Path, wildcard deletion, recycle bin
Subscribe to Delete Files
Get notifications when this page is updated
|Keywords: TechHelp Access, VBA Kill command, delete temporary files, automatic file deletion, VBA file handling, on close event, delete PDF files, automate cleanup, Export Report to PDF, manage database folder, file deletion in Access, delete to recycle bin PermaLink Delete Files in Microsoft Access