Tag for questions regarding file deletion. O.S. independent.
Questions tagged [delete-file]
2105 questions
0
votes
1 answer
Deleting a folder and all of its contents if the folder has more than 1 million files
I am trying to delete a folder that is used in my cdn and it creates new folders for each file viewed. This means that for every file requested their is a folder. This has stacked up to about a 100 million folders inside my main folder.
How would I…
user6137036
0
votes
1 answer
Android Camera2 API - Overwrite old images
I am using the code given at https://github.com/googlesamples/android-Camera2Basic
and images are being saved in the activity storage with
@Override
public void run() {
ByteBuffer buffer = mImage.getPlanes()[0].getBuffer();
…

Julian
- 146
- 2
- 9
0
votes
1 answer
OBIEE 12.2.1.2 Can not delete catalog folder? Error: Shortcut expected
I want to delete an old_folder from my shared catalog folders, however, the following error message is displayed: Shortcut expected /shared/old_folder/...
The same message appears in the catalog manager. Deleting single objects (analyses, prompts,…

Max Power
- 69
- 1
- 12
0
votes
1 answer
How to delete a .bat file in the same folder as the executed .bat file (without deleting the executed one)?
While making a batch file, I thought of adding a version number to the name so new versions don't get replaced by old. What I want the new version to do is delete all the old ones, so as an example lets take a folder named apps and in it are Test…

Gecko64
- 47
- 1
- 5
0
votes
2 answers
How to delete a file which is used in another thread or process in c#
Here, i have a some format file which contains 2 folders and some xml files in that folders.While opening that file i extract that file in temporary location like appdata.
Then read each and every file and rendered some UI elements based upon the…

Pandi
- 471
- 3
- 17
0
votes
2 answers
Cannot find file to delete via git bash, but it shows up in file explorer
I started to learn git yesterday, and I made a mistake when I created ssh key as the first image shows.
I tried .bat delete way and dos del command, still cannot delete file named cd ..
The prompt said cannot find file. The attribute of file size…

silk
- 35
- 9
0
votes
2 answers
Error with Unix shell script Find and delete based on hours
I'm trying to delete a folder contents in unix based on the date created using the following statement in a shell script.
find /mypath -mmin +$((60*24*1)) -exec rm -rf {} \;
I have configured to run this script from Control M. This deletes the…

Srivatsan
- 81
- 1
- 9
0
votes
1 answer
Delete previous version of files (in the form name_#.#.#-#.extension) on Linux
I have files which are named something like
foo_1.5.6-8.xyz
foo_1.5.6-9.xyz
foofoo-6.5.xyz
foofooofooo-8.7-1.xyz
foofooofooo-8.7-2.xyz
That is, the general form is name_#.#.#-#.extension, but some lack a "-#" and/or a ".#".
EDITED:
How can I delete…
user8202504
0
votes
1 answer
File deleted without getting copied
I am trying to copy some Files to SD Card and then delete them . But many times the files are not getting copied and only getting Deleted.
And also many times the FileInputStreamis null where as i am checking if the file which has to be transferred…

Rahulrr2602
- 701
- 1
- 13
- 34
0
votes
1 answer
Django page not found when deleting object with foreign key (1 to many)
This is my first time trying to delete objects with a foreign key. The models have a 1 to many relationship:
class NumObject(models.Model):
title= models.CharField(max_length=50)
number= models.IntegerField()
ident=…

Adam Yui
- 139
- 11
0
votes
3 answers
Find Path During Runtime To Delete File
The code basically allows the user to input the name of the file that they would like to delete which is held in the variable 'catName' and then the following code is executed to try and find the path of the file and delete it. However, it doesn't…

Kimberley Lloyd
- 577
- 1
- 5
- 7
0
votes
1 answer
Logrotate - compressing, moving, and deleting
I'm working with a bunch of logs generated from a script that outputs one logfile per instance of what the script is running over. Once logfiles are generated, they are not modified or appended.
I can't find any way to simply compress and move the…

user1030489
- 89
- 5
0
votes
3 answers
Laravel CRUD Delete function error
Here,what i want is when i press delete button necessary raw need to be deleted.that means relevant trainee_id and its details need to be deleted.
Here is the controller i`m using for that.
public function admin_destroy($trainee_id)
{
…

Dasun
- 602
- 1
- 11
- 34
0
votes
1 answer
Windows [10] File Folder Denied Access
I have a file folder called, my_folder it has been created by a program and has been made into a read-only access. I have admin rights to the computer I'm using but when I try to make it non-read-only it says that I don't have access to it. I've…

Preston Hager
- 1,514
- 18
- 33
0
votes
2 answers
deleting results after completion of code's execution PYTHON
Currently I am working on a project in which I need to save n number of images (to be used in the program's scope). Since the number of images to be saved is dynamic, it may end up exhausting the whole space which i have for my project.
I wanted to…

Ambika Saxena
- 215
- 4
- 17