Tag for questions regarding file deletion. O.S. independent.
Questions tagged [delete-file]
2105 questions
0
votes
2 answers
How to delete a data from an array in a database (C#)?
I am currently working on a Employee Database using C#. I have 4 different classes which makes up my database; Salaried Employee, Hourly Employee, Commission Employee, and Base-Salaried Employee. I have a base class called "employee" which holds the…

Christopher Macapagal
- 13
- 1
- 8
0
votes
1 answer
Deleted local repository by accident on Source Tree
Just one question. Is there a way of getting it all back? If so how? I was able to retrieve some of the files from the recycle bin but a lot are still missing. Help.

Kasia Wichrowska
- 311
- 2
- 5
- 16
0
votes
1 answer
Delete .txt files from current folder BATCH
I have a test folder with a .bat that unzips any zip files in the current folder. That works great. I am looking to delete all .txt files from the current folder. (The files I just unzipped) How can I only delete .txt files that in the current…

Clint
- 89
- 13
0
votes
1 answer
Batch Programming - Not deleting partial files being written
I am trying to develop a batch script which copies a list of files from the a source directory to another directory and does some functions. Once the copy has been done, the files needs to be deleted from the source directory.
In the source…

D. Dutta
- 1
0
votes
1 answer
GETTING THE ERROR IN VISUAL STUDIO: error C2664: '_chmod' : cannot convert parameter 1 from 'wchar_t [260]' to 'const char *'
C++ code to delete any folder:
#include
#include
#include "stdafx.h"
#include
#include
#include
#include
#include
using namespace std;
BOOL IsDots(wchar_t* str)
{
if…

Sneh Shikhar
- 91
- 9
0
votes
0 answers
Deleting a folder in a AVD
I try to delete a folder with:
adb shell rmdir -f /storage/sdcard/myfolder
adb shell rmdir -r /storage/sdcard/myfolder
and I get the following error :
rmdir failed for -f, Read-only file system
How can I manage to delete that folder, without using…

mcfly soft
- 11,289
- 26
- 98
- 202
0
votes
1 answer
Delete all photos from Android device
In my app there is a button that will delete all photos in the phone before its been sold, so no one can see photos in the phone.
this code behind this button is this
List mediaStoreIds = new ArrayList();
Cursor c =…

asmgx
- 7,328
- 15
- 82
- 143
0
votes
0 answers
shutil.rmtree(dest,ignore_errors=True) deletes other files but not .log and .tresoslog file?
I am using a python command shutil.rmtree(dest,ignore_errors=True) to remove files from .metadata folder which was generated when eclipse is launched.
This .metadata folder has .log file, .lock file and a folder which has plugins.
When I use this…

Sai
- 73
- 1
- 10
0
votes
2 answers
Deleting files and then deleting the parent directory
My Java Windows application keeps data for a particular problem in a file aProblem.db that is in a directory (folder) of the same name, e.g., Documents\MyApplication\aProblem\aProblem.db. I would like the user to be able to delete aProblem without…

Ed S
- 239
- 5
- 21
0
votes
1 answer
Find and delete resource files using batch file
I have never written a batch file so please bear with me.
I want to find resource file from current working directory of batch file. If it exist then I have stop aspnet_wp.exe process (if running) and delete this resource file. Later run resgen…

jet
- 23
- 4
0
votes
0 answers
Delete log file use by another process
I create log file from this command
shell_exec("node node-server\socket.server.js > node.log");
and I want remove this file without stop service.
when I use this command
unlink('node.log');
show me this error
unlink(node.log): Permission…

paranoid
- 6,799
- 19
- 49
- 86
0
votes
1 answer
Delete Emails from Outlook Folder Using C#
I can't seem to get this working. I am trying to iterate through all the mail items in a folder I created named 'SlaughterPDFs' and delete the emails.
Below is the code I am using. In this code I was just trying to delete the mail items out of the…

Danrex
- 1,657
- 4
- 31
- 44
0
votes
2 answers
deleting a file in android emulator (AndroidStudio)
I only want to delete a specific file in my AndroidEmulator running Android 7.1. My app created it and for testing I need to delete it again.
I am not able to do.
Any hints how I could do ?
Update
I guess I was to unprecise with my question.
I do…

mcfly soft
- 11,289
- 26
- 98
- 202
0
votes
1 answer
Deleting a php file
I'm not sure how to do this, I have a file which defines (and creates) the database, I want it to be run once (on installation) and not every time the index.php page is run, so what is the best way to do this do you think? I was thinking of deleting…

john mossel
- 2,158
- 5
- 24
- 39
0
votes
2 answers
Why do I get an Large File Warning from Github for a file that i have listed in gitignore?
Without really thinking about it, I've been committing and then pushing to my Github repository the images I am using in development.
After discovering that this was causing issues that prevented me from pushing my project to my branch, I searched…

Lenocam
- 331
- 2
- 17