Questions tagged [delete-file]
Tag for questions regarding file deletion. O.S. independent.
1,882
questions
0
votes
0answers
96 views
WordPress database error: [Table 'wp_users' already exists]
In the morning, my xampp MySQL server was not starting. So, I read a post from the internet and I mistakenly deleted some random files from xampp/mysql/data folder. But I did not delete any of the ...
0
votes
0answers
18 views
Automate Deletion of files/attachments on opportunity record once it reaches a certain status
I am trying to automate deleting all related files for an opportunity once that opportunity reaches status x or status y.
I created a flow that deletes attachments where the parentID = opportunityID. ...
0
votes
2answers
68 views
How to delete the “…” folder in Windows
I have created the uncreateable "..." (three dots) folder in Windows with this code:
mkdir \\?\C:\Users\User\Desktop\...
But if I try to delete it, it asks to me if I want to "...
0
votes
1answer
48 views
What prevents windows from deleting a file that is in use?
Sometimes I try to delete a file with del /f filenameand it says "The process cannot access the file because it is being used by another process.". Out of curiosity, what exactly is ...
-1
votes
5answers
55 views
Script to remove diagnostic files with specific extension
I have time dependent diagnostic output files such as
output1.1
output1.2
output1.3
.
.
.
output1.998
output1.999
output1.1000
output2.1
output2.2
output2.3
.
.
.
output2.998
output2.999
output2.1000
...
0
votes
2answers
118 views
Can't figure out how to close an open reference
Basically I am extracting a page from a PDF, pasting a figured text into the extracted page, and saving the extracted page into the same folder. I've got everything to work as expected, but I end up ...
0
votes
2answers
38 views
Deleting a file/s within a folder that hasn't been modified in x seconds, continuously
I have a folder that contains text files that are constantly updated. I'd like to delete the files that are older than x amount of seconds, which I'm able to do via the following:
import os, time, sys
...
-2
votes
1answer
562 views
Visual Studio Code accidentally deleted ALL of my desktop files. Is there any way to get them back?
For the record I am a novice programmer currently taking Harvard's free Game programming course, and my computer is a Mac. I know how to use Git to submit something, but I'm not aware of all the ...
0
votes
2answers
107 views
Flask: delete file from server after send_file() is completed
I have a Flask backend which generates an image based on some user input, and sends this image to the client side using the send_file() function of Flask.
This is the Python server code:
@app.route('/...
0
votes
4answers
169 views
Delete files with specific extension except a particular file
I have a folder which contains the following files:
How can I delete all files with extension .rst (File1.rst, File2.rst, File3.rst, File4.rst, File5.rst) except the file "index.rst" from a batch ...
-2
votes
1answer
29 views
how can i delete a file or folder on github?
I created a folder by mistake in name of it, and now I want to delete this folder or the file that is inside the folder. When I go to relevant folder and try this command git rm -r Data Development (...
0
votes
1answer
30 views
can't delete the correct picture from firebase in uicollectionview using swift
so, I have a collectionview that contains images downloaded from firebase. Each cell has a delete button. Im trying to allow users to delete the images. So far I am able to delete the cell. But then ...
1
vote
4answers
92 views
Deleting files of specific extension using * in Python
I have couple of text files named as:
temp1.txt
temp2.txt
temp3.txt
temp4.txt
track.txt
I want to delete files only starting with temp and ending with .txt.
I tried using os.remove("temp*.txt") but ...
0
votes
0answers
56 views
Android: Application to manage files on SDcard
I have a problem with understanding how to manage files at SDcard in the tablet.
I have my own application in Kotlin (in manifest.xml I have a permission READ_EXTERNAL_STORAGE and ...
1
vote
1answer
39 views
Delete specific line from .txt file (C++)
I am trying to scan through the content of a .txt file in order to compare it with a user's int input and once found the matching value, line where it is written to be removed.
The file DOES NOT have ...
0
votes
1answer
567 views
How to recover files in git deleted via command git clean -xdf without any commits [duplicate]
I mistakenly have deleted all the files in the local repository via command git clean -xdf which did not commit for once since the creation. One of my codes was not working. It prompted me to use
git ...
0
votes
1answer
24 views
How can I delete an image while it is open in listview?
I am trying to athis listview that shows images in a folder
public void LoadData()
{
var imgList = Directory.GetFiles(directoryPath, "*.jpg",
SearchOption.AllDirectories);
myListView....
1
vote
1answer
49 views
Unable to delete EXE after it crashes even though process not shown in Task Manager
I have a program that I have written that crashes and I'm in the process of debugging it.
However, the issue is that when I attempt to create a new build, very frequently (but not always!) I get the ...
1
vote
2answers
1k views
How to recover deleted frame in Figma?
I need help. Two days ago I was making a portfolio website in Figma and somehow I've deleted the whole frame of my design. I know that Figma has that autosave and I am so angry right now. I don't know ...
-1
votes
1answer
41 views
I mistakenly deleted a file from project navigator and now xcode say no schemes on top left
I am new to swift and I was undoing a bunch of stuff on Main.storyboard. However, I accidentally deleted something from project navigator. Now xcode says no schemes. When I try to manage schemes, I ...
0
votes
0answers
114 views
Can't remove folder on macOS - Directory not empty
I have strange problem with removing empty folder on macOS Catalina.
Right now I have ended up with new ideas how to remove that thing.
felixd@Felix-MacPro:~/a$ ls -of delme/
total 0
drwx------ 3 ...
-2
votes
1answer
39 views
How can I hide Delete button from recyclerview, when the file is not exist?
Here is my recyclerView Adapter which shows a list from the database, View button is for downloading and the delete button deletes the file from device storage, it works perfectly. But how can I set ...
2
votes
2answers
79 views
Find when a “deleted by us” file was deleted in git
I have two branches: master, and a long-running feature branch, called feature. I continually merge from master into feature.
One of my merge conflicts is:
Unmerged paths:
(use "git add/rm <...
0
votes
0answers
70 views
This backend doesn't support absolute paths. Django to delete file in gd_storage
Sorry, I'm a newbie on Django platform, now I was trying to delete file from google drive, and error occur. I really don't know the meaning of This backend doesn't support absolute paths. Here is my ...
0
votes
2answers
45 views
Getting error “Process cannot access file” while deleting file in Python
I am working on a project where I have many json files stored in a directory. I need to read all the files and check there data. If 'sessionisfalse` in any of the files, I need to delete the file. ...
1
vote
0answers
40 views
How delete a record from a file
I am working on a code that creates a binary file that holds structures of student data. One of the things i need to do is to delete a record from a file but I don't know how to do that. I'm not sure ...
0
votes
0answers
19 views
android studio delete image from device gallery with uri
I am trying to delete an image which I would have just saved to the device.
I have the Uri which I pass to the activity in an intent and I want to use that Uri to delete the image.
The Uri resolves ...
0
votes
0answers
9 views
How to prune the PHPList directory to reduce bloat
Can anyone quickly point out where I can prune large chunks of the PHPList directory tree to reduce its bloat? It contains over 12,000 files totalling almost 100 Megabytes in size.
A hundred ...
0
votes
0answers
6 views
When my first service stopped and deleted the second service, I can't delete files
My first service is the updater of the second service. During operation, my first service disables and uninstalls the second service, deletes the files of the second service, inserts new files in ...
0
votes
4answers
140 views
How do you skip deleting a file after you get an error?
I need to make the process that deletes all files in the temp folder when I run the program it says
"The process can not access the file because it is being used by another process.", so I ...
-1
votes
1answer
62 views
LARAVEL How to delete image from public folder?
I am coding a blog post, when i click add post the image from any folder is put into public/user/img/
How I delete it when i delete the whole table line? (click delete a post), please see the public ...
0
votes
0answers
52 views
Deleting excel file from sharepoint folder
I am currently struggling to delete the file from sharepoint folder which first saves the file in a different folder and then deletes the old one with the same name in a different folder. This is ...
0
votes
1answer
31 views
Deleting a line in a text; method not working
All other solutions to this problem, that I find online, doesn't seem to help at all.
I have a method, that is supposed to find a specific line in a populated text file. All except the found line, ...
0
votes
0answers
263 views
How to delete the app Data Folder from target Machine after program is uninstalled
I have created the electron app it creates the folder .name_of_folder when user install the software but when the user uninstalls the program I want to delete the folder how can do this in electron ...
3
votes
0answers
539 views
Some of the files disappear after extracting zip files in google drive through Google Colab
I am using Google colab to train my model therefore I have uploaded the dataset in zip format to google drive. Whenever I used the following command to extract dataset in the google drive, some of the ...
2
votes
1answer
134 views
How to delete subfolders and files from parent folders found in the variable of a bat script?
What I'm trying to do is find all the folders named "temp" on local disk C and then delete all files and subfolders that are inside it, but I don't know how to delete it, I only managed to get to the ...
0
votes
3answers
636 views
How delete all files in a folder except last 5 items with Python
I am looking for a way how to clean a folder from files, except last newest five items with Python.
I am quite new to Pytohn, so I was able to keep the last one only with max() function, but I am ...
1
vote
1answer
39 views
Deleting corrupt git files
I have been using the desktop version of Git Hub for about a month, and I have run into some trouble with deleting a directory. I just moved all of my individual projects into one repository for ...
0
votes
1answer
169 views
Cannot delete folder with special character in windows
by accident I created a folder that cannot be deleted on one our our build machines.
The name of the folder is a special character and a blank at the end.
When I try to delete the folder in windows ...
0
votes
0answers
12 views
How can I delete a directory and its content from a batch inside it?
I want to delete a windows directory and its content (other files and directories), but the batch file that deletes it it's inside it.
0
votes
1answer
257 views
Unzip File Only If New in Google Apps Scripts
I have a folder (let's call it the source folder) on Google Drive that is updated from time to time with new zip files (underlying files are PDFs). I am trying to use Google Apps Script to unzip only ...
0
votes
2answers
37 views
Automatically remove Tomcat logs in Microsoft Azure App Service
I can't find a configuration / tool in the Azure portal to eliminate the logs generated by the Tomcat in order to avoid problems since my storage is full.
From already thank you very much.
1
vote
4answers
293 views
Git restore file deleted in local branch
I always create a new branch when building a feature. I have done so this time and committed my work to the new branch. However, I noticed that somehow I deleted a file and that was committed as well. ...
0
votes
2answers
597 views
Add timestamp to output log file before each object
I have a powershell script which deletes files and folders older than 180 days, and I would like to add date and time of deletion in the log file before each object. Is that possible?
$limit = (Get-...
0
votes
1answer
39 views
Remove many corrupted files within a folder
I have a folder with 11,652 files within it.
the files have the following extensions:
.xlsx
.pptx
.doc
.docx
.ods
All of the files looks like they are fine within explorer (they have date modified, ...
0
votes
1answer
62 views
Getting Null point Exception when Clicking Delete Button in RecyclerView
public void onBindViewHolder(@NonNull final MyViewHolder myViewHolder, final int i) {
myViewHolder.mName.setText(downModels.get(i).getName());
myViewHolder.mDownload.setOnClickListener(new View....
1
vote
0answers
84 views
PHP unlink() problem with files named with multiple extensions
I'm encountering an issue I've never come across before. I have some images uploaded as JPG or PNG with a duplicate of the image in WebP format, eg in this file naming convension:
https://example.com/...
0
votes
1answer
42 views
How to log in Python
I have some code that looks at a directory and deletes files older than 60 seconds:
import os
import datetime
dir_to_search = '/documents/folderfordeletetest/archive/'
for dirpath, dirnames, ...
0
votes
0answers
30 views
How do I access harddisk in ubuntu?
How do I access harddisk in ubuntu? "/ dev / sdb" is just a node. The code I added below was coded to replace zero with the data on the entire disk. but what I noticed later is that there is no "/ dev ...
0
votes
1answer
164 views
PHP Checkbox delete files from folder
I want to delete files from folder called "fajlovi". Multiple and singled delete should work. But it delete first file in folder (0 position in array of files in the folder). If I check any for files ...