Deleting Records before import

Deleting Records before import

When importing data from a CSV/Excel file inside of a Report (using the little gear icon), is it possible to write a script that removes all records from the database prior to importing? Each time we import data this way, we want to completely empty the existing data set automatically and replace it with the data we're importing. Any help would be greatly appreciated! Thanks