Questions tagged [delete-file]

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

2105 questions
0
votes
0 answers

deleting image from gallery/filesystem

I'm working on an app similar to a gallery, and I'm trying delete option. As suggested in other threads I tried to use media scan after deleting but for some unknown reason, it is not working. The file is getting deleted but in my app, it is showing…
Sumukha Aithal K
  • 675
  • 1
  • 10
  • 23
0
votes
1 answer

Java Can't delete image file, itext7 html To Pdf conversion image file lock after writing to PDF

I am creating a multi page PDF file from HTML templates. There are some images as well that I'm showing in PDF. PDF generate successfully and images are added in PDF file. But After this when I want to delete images they are not deleting, Popup…
0
votes
0 answers

Calling curl to delete file from ftp in python 3.6

Im trying to delete a remote file from ftps calling curl from python 3.6 and keep getting errors from curl. Im running proc = subprocess.Popen(["curl", "-v", "-u", ftp_user+":"+ftp_pass, "-k", "--ftp-ssl", "--tlsv1.2", "--ftp-ssl-reqd",…
Barak K.
  • 3
  • 2
0
votes
0 answers

Delete files based on path stored in vector

I already checked several question on SO. This questions is different because asks to delete several files based on paths stored in a vector. I have a vector: rds_files <- paste0("C://mypath//file", 1:10, ".rds") Each element of the vector…
Seymour
  • 3,104
  • 2
  • 22
  • 46
0
votes
1 answer

How to programmatically delete a video android and make sure it is removed from device?

Please take a look at my code bellow. Basically, I was able to erase the information contained in my file, but the empty file still exists on my android device. Instead of completely erasing my file, it only removes the information contained in the…
Naman Jain
  • 321
  • 5
  • 21
0
votes
0 answers

Create Batch File for deleting files from Particular folder that created yesterday not older then that Script attached

i am trying to create batch file that will delete all files in particular folder mention in batch file. files tha are older then one day deleted from that folder. My batch file(Daily Files Cleanup) is, /p "D:\Temporary\PDF" /s /m *.* /c "cmd /c Del…
0
votes
2 answers

How to remove files from a directory if their names are not in a text file? Bash script

I am writing a bash script and want it to tell me if the names of the files in a directory appear in a text file and if not, remove them. Something like this: counter = 1 numFiles = ls -1 TestDir/ | wc -l while [$counter -lt $numFiles] do if…
J. Tate
  • 163
  • 1
  • 10
0
votes
1 answer

Unable to delete SharePoint Master Page

SharePoint by default has two master pages: Seattle and Oslo. The general rule is we should not modify these default master pages. If we need any customization, we should make their copy, make modification, upload to the Master Page Gallery and then…
Merin Nakarmi
  • 3,148
  • 3
  • 35
  • 42
0
votes
1 answer

Why does Isolated storage not delete the last two temporary files when exiting on a Windows Phone 7?

I have written an application that uses Isolated storage store data that I want to clear out on a periodic basis when it gets old. I have written a function that is called from Closing that checks the isolated storage for old data and deletes it. …
0
votes
2 answers

Deleting selected attachment from e-mail C#

I'm writting an e-mail sender using smtp protocol. I select attachment using OpenFileDialog and then filename appears in attachmentListBox. I used two lists to have file name and size. When I select filename in listbox and click button called…
KCPR
  • 5
  • 2
0
votes
1 answer

Take a picture with camera and delete afterwards

I've seen a lot of posts here that say that this is solved, but watching at the dates, I think the most recent I've seen is from 2015. I've tried what I found and couldn't solve it. Mainly, what I've tried was to find the file (in different ways)…
Silkking
  • 250
  • 3
  • 15
0
votes
0 answers

Deleting a file in Laravel cause an exception

I am trying to delete a file in Laravel but it is causing this exception: unlink(D:\graduation project\kh\storage\app\upload/three.zip): Resource temporarily unavailable in D:\graduation…
Khaled Rimawi
  • 115
  • 1
  • 6
0
votes
3 answers

Deleting desktop icons using batch?

I'm trying to create a batch that will delete an icon from the desktop however its not working could anyone elaborate on this? del "%userprofile%\Bureaublad\AutoCAD 2006.ico" Second part of my question, the %userprofile% works fine at work however…
philip
  • 345
  • 4
  • 5
  • 9
0
votes
1 answer

Delete file using impersonation - access to the path is denied

I'm creating Revit add-in, the add-in deletes files from C:\ProgramData\Autodesk\Revit\Addins\2017 folder on Revit startup. I'm using impersonation to copy, rename and delete files using the admin credentials. The problem is when I start the Revit…
0
votes
1 answer

django delete s3 image uploaded using custom field

I am using a custom field to upload image on s3 using django 1.9. I want to delete image from s3 whenever model instance is deleted. I have tried post_delete signal with ImageField's delete() method but since I'm using custom field cannot achieve…