Tag for questions regarding file deletion. O.S. independent.
Questions tagged [delete-file]
2105 questions
0
votes
2 answers
Deleting file during FTP/Database connection failed
my program is meant to load an image, resize it, save it, send it to FTP server and then delete resized image. Full code - HERE
The problem I am encountering is after pressing a finish button from the file named AddBreedBuilder.java: program sends…

Łukasz Karasiński
- 70
- 6
0
votes
2 answers
Batch file to delete selected files
In most modern systems, the system will automatically create extra files that are unnecessary. How can I create a .bat file that makes use of a checklist to delete any file that isn't on it?
This would be useful for removing automatically generated…

Meldrum
- 57
- 2
- 7
0
votes
3 answers
How do I to delete/trash/remove a csv file if exists
I'm trying to create an export to csv apps script but it will not delete existing csv files sitting in the same folder. I would like to either trash them or overwrite them.
Here's the code I've already tried
function saveAsCSV() {
var ss =…

Kevin D
- 98
- 8
0
votes
1 answer
Bootstrap fileinput : deleting previews
Hello to everyone here!
First, I searched for duplicate posts but I've not found something like my issue.
I'm making some tests (you will see some repeat in my code) to upload multiple files with bootstrap fileinput and I have some issues using the…

Jul CL
- 1
- 1
- 3
0
votes
1 answer
How can I find when a file was deleted in a local Git working directory?
I was recently making some changes to a local Git repo, and I saw that a bunch of files had been deleted from the local repository. I hadn't committed these changes, so the files weren't actually deleted on the remote Git repo, but I'm still curious…

Jack Ceroni
- 113
- 6
0
votes
1 answer
I can't delete file, after pdfBox
I can't delete pdf file after working with PdfBox. All closeable variables are closed, but it not helped. I can't delete pdf file anywhere and anyhow, when my app launch method with PdfBox library.
public void generateTxtFromPDF(String txtFile,…

Filipp Berzenin
- 1
- 1
0
votes
2 answers
Schedule a Task which runs 2 times a day
I want to develop a tool which can delete all files of a folder 2 times a day - at 8:30 in morning and night.
It should only delete all files permanently but not the folder.
My deletion code is working fine but I am having problem with scheduling. I…

Abhi
- 1
- 4
0
votes
0 answers
Is it possible to delete the last photo in my photo library using swift
I'm trying to get the last image from my photo library and delete it.
There are answers on getting the last image and answers to delete an image using its URL, but I find it difficult to consolidate both
var images:[UIImage] = []
func…

Tochukwu
- 190
- 1
- 11
0
votes
1 answer
Delete Uploaded image in canvas
Once we click on Image , we are displaying File upload dialog box. User can able to upload image.
Issue :
Then when we click on "Remove" button, its clearing whole canvas.
Requirement :
but i need to delete only the uploaded image....
Remove Image…

vickey colors
- 171
- 1
- 10
0
votes
2 answers
File Operation without enumeration
I want to delete a huge amount of files via PowerShell.
I want to use a terminal, because my Explorer crashes if I try to delete or access the folder.
It is an INetCache folder from Windows…

kurdy
- 441
- 4
- 15
0
votes
0 answers
How to merge and delete files at the same time, starting with COPY /B?
After considering using VBScript to merge files - see Do I need to use WMI in order to merge text files in VBScript? - I finally ended up using the DOS command COPY /B with appropriate pattern (and matching file names/extensions).
Note: the /B flag…

maxxyme
- 2,164
- 5
- 31
- 48
0
votes
4 answers
Python - Delete xlsx files from a folder
I am trying to delete all xlsx files from a folder, note it has files of other extension. Given below is what I have tried:
path = '/users/user/folder'. <-- Folder that has all the files
list_ = []
for file_ in path:
fileList = glob.glob(path +…

scott martin
- 1,253
- 1
- 14
- 36
0
votes
0 answers
Why can't I delete files in Android 9 using FileProvider?
I am trying to delete files in Android 9 programmatically with the following code. This code works well in Android 7 & Android 8 but it doesn't in Android 9.
Delete code
public void deleteFile(String filePath) {
Log.v("File Path", filePath);
…

MSeiz5
- 182
- 1
- 9
- 28
0
votes
1 answer
commitEditingStyle and delete file from document directory
I am trying to delete file from the document directory by use of commitEditingStyle method but I am facing following problem:
In a table I am displaying all file names which are saved in the document directory. As users press "Edit" all cells are…

Pooja
- 2,162
- 5
- 33
- 64
0
votes
0 answers
How to restore a deleted project on Eclipse?
I finally decided to create a new workspace for the first time today since the first one is starting to look a little too crowded for me. So, I create a new workspace and then transfer one project to the new area.
I then deleted the project in the…

Siv
- 43
- 6