added an option to clear the selected bucket before upload

also accepts a prefix for files to delete