if (get_option('dos_storage_file_only') == 1) {

dos_file_delete($pathToFile);

}
manager-digitalocean/do-spaces-sync/code.php