Questions tagged [delete-file]

Tag for questions regarding file deletion. O.S. independent.

2105 questions
0
votes
1 answer

How to delete before 24 hours elasticsearch document

Im would delete before 24 hours elasticsearch document And put this inside the cron what is the query " delete before 24 hours elasticsearch document" ??
OMID
  • 21
  • 1
  • 7
0
votes
2 answers

Action cannot be completed because another process is using the file

Not sure whether I have the message above exactly correct but I run into this often. I try to use Windows to delete a directory or a file and it tells me I can't because the file is in use by another program. It doesn't say what process is using…
Tony
  • 1,127
  • 1
  • 18
  • 29
0
votes
1 answer

Vb.net Delete File (CMD)

This is the code: Private Sub DeleteFiles() Dim file As String Dim prefetchPath As String prefetchPath = Environment.GetEnvironmentVariable("windir", EnvironmentVariableTarget.Machine) & "\Prefetch" For Each file In…
HeyMyBoy
  • 3
  • 5
0
votes
0 answers

icacls /deny (de and d) doesn''t work

I'm truin to use icacls to prevent file deletion I tried : icacls /deny Everyone:D - icacls /deny users:D - icacls /deny administrator:D but this prevents me from accessing the file and I can't execute it I then tried de instead of d but in this…
0
votes
2 answers

By the c# code Windows service toggle and trying to remove a directory used by that service.

I'm trying to delete a directory used by a service. Because the directory is used by the service. That is why I have to stop the service. I can start or stop the service by the following code. static void ToggleHostService(HostStatus…
masiboo
  • 4,537
  • 9
  • 75
  • 136
0
votes
0 answers

How to DELETE data from a table[Ingress db]

I need to delete certain data from my table, but I write the following: delete from myTable where myField = value; commit; and I get error: E_US0DAE DELETE on Table myTable: no GRANT or GRANT compatible permit exists. Does anyone know…
BrandCodes
  • 153
  • 1
  • 7
0
votes
1 answer

Cannot delete image (in use) C#

What I am trying to do here is: Download an image Save it to disk Resize etc Save it with a new name Delete the old image I have achieved everything but not the last step. I get the "file in use" error. This is the code: filenameb =…
0
votes
3 answers

How to delete multiple gridview items at once

I created an image gallery app which displays images as a gridview. I can select multiple photos at a time but I am not able to delete all of them at once by clicking the delete button. I am not using checkboxes because it doesn't go well with the…
red viper
  • 152
  • 14
0
votes
1 answer

Deleting driectory deletes only its content using Ant

I'm trying to delete directories and its content using ant, but onlt the content gets deleted. The directory is still existing. What am I miising?
soninob
  • 428
  • 11
  • 22
0
votes
1 answer

How delete detached database on disk by T SQL?

How delete detached database from disk using T-SQL? I want to delete a detached database from my hard disk. What should I do in T-SQL? I want to create a database with the same name and I get this error in Microsoft SQL Server 2014 Management…
Poorya
  • 11
  • 3
0
votes
1 answer

Remove original image after processing

My connected component function takes original image processes it and generates processed images how do i delete original image from folder and keep only processed one. def run(dirname, img): data = img.load() width, height = img.size …
0
votes
1 answer

Able to delete a file without permissions

Why am I able to delete a file in my Java code despite the Tomcat user not having the deletion permissions? My server is running the following code, which deletes and recreates a file if it exists: File fileCSV = new File(filePath); try { …
Southpaw Hare
  • 1,535
  • 3
  • 24
  • 50
0
votes
1 answer

Batch file: Loop through File names that contain a certain word and clear those folders' files IF older than X days

I am trying to write a batch script to clean up old data in a compile directory. It must search in a certain head directory. There, it should delete files older than 7 days but ONLY in subfolders with a name that contains the word "compile", f.i.…
Apfelsaft23
  • 316
  • 2
  • 23
0
votes
0 answers

File system gets stuck in 'FileSystemObject.DeleteFile'

I have one automation project which does the job of building the setup using NSIS wrapper. The project is built with the VB6 code. During the execution of the project I am getting the error for deleting a file as “Method 'DeleteFile' of object…
IT researcher
  • 3,274
  • 17
  • 79
  • 143
0
votes
1 answer

Can't delete file after creating AudioInputStream from the file

I am working on a program for a class which involves creating a temporary audio file, reading data from it, and then deleting it. I have everything working, except deleting the file. When I attempt to delete the file, file.delete() returns false. I…
weberer
  • 3
  • 3