delete-file Questions
7
Solved
shutil.rmtree will not delete read-only files on Windows. Is there a python equivalent of "rm -rf" ? Why oh why is this such a pain?
Mirage asked 11/12, 2009 at 17:29
16
Solved
How can I delete a single directory containing files from a Git repository?
Bonds asked 10/6, 2011 at 23:54
2
Solved
I am using API gateway to call lambda function that imports a mpeg file (10 mb) from s3 and saves in /tmp folder of lambda and the lambda uploads it to external API (youtube etc)
Recently the API g...
Hensel asked 19/1, 2018 at 18:23
2
I have a requirement to delete screenshot image file after a certain time using background service in my app and it was working fine using the above method
private void deleteTheFile(String path) {...
Noreennorene asked 2/6, 2021 at 2:37
3
Solved
I need to delete everything in my temporary folder. I know I can use filesystem::remove_all and filesystem::remove_all_dir but that would mean the program will also delete the temp folder itself wh...
Monophonic asked 27/11, 2019 at 19:59
4
Solved
Can anyone help me create a batch file? Basically, my goal is to create a batch file that will keep the LATEST 7 .txt files (in other words, the newest) in the folder and subsequently delete the re...
Burly asked 13/11, 2012 at 19:54
5
I want to find and delete every desktop.ini and Recycle Bin.BIN file on a network drive, H:, using a windows batch file. I currently have this:
@echo About to delete all desktop.ini and Recycle B...
Macario asked 30/9, 2013 at 10:26
2
Question
How can I list all the commits that delete any file in the repo? (not a specific file, but all the commits that delete anything).
Context
We have a multiple-years-old repo and we plan to r...
Safranine asked 27/6, 2022 at 19:51
3
I want to clear the git log files so that the command git log returns nothing. Is this possible? Is this recommended?
Tripper asked 5/6, 2012 at 19:23
15
How can I find out when a file was created using java, as I wish to delete files older than a certain time period, currently I am deleting all files in a directory, but this is not ideal:
public v...
Io asked 23/2, 2013 at 16:39
4
Solved
I couldn't restart Tomcat webserver. But catalina.out get very big.
I have tried delete on test server and created new empty. But Tomcat doesn't write anymore in new catalina.out. How correct dele...
Adrial asked 13/2, 2014 at 12:28
7
Solved
I wrote this php script to delete old files older than 24 hrs,
but it deleted all the files including newer ones:
<?php
$path = 'ftmp/';
if ($handle = opendir($path)) {
while (false !== ($fi...
Spirit asked 27/6, 2010 at 2:40
10
Solved
Is it possible to make a batch file delete itself?
I have tried to make it execute another file to delete it but this did not work.
Does any one know how I could do it?
The batch file I am using is...
Regrate asked 2/12, 2013 at 13:21
7
Solved
I'm trying to programmically delete a file, but the file is apparently being used by another process (which happens to be my program). Basically, the program loads images from a folder by using Fro...
Puce asked 7/11, 2012 at 3:1
6
Solved
Are there existing solutions to delete any files older than x days?
Wedged asked 24/1, 2012 at 9:34
2
Solved
I have a controller with a createAction an editAction and a deleteAction.
I can add pictures and delete them from the database.
As I followed the Symfony doc to create an uploader file, I also cr...
Fencing asked 20/3, 2017 at 14:44
3
Solved
I tried to use shutil to delete a directory and all contained files, as follows:
import shutil
from os.path import exists
if exists(path_dir):
shutil.rmtree(path_dir)
Unfortunately, my solution d...
Loretaloretta asked 6/12, 2021 at 13:53
2
Solved
I added a bunch of files at different times to my project then later deleted them, and I forgot to make Xcode trash the files in addition to the references. Since Xcode doesn't store the grouped fi...
Martinmartina asked 26/2, 2014 at 5:43
7
Solved
I'm trying to work how how to delete all files in a folder in Azure File Storage.
CloudFileDirectory.ListFilesAndDirectories() returns an IEnumerable of IListFileItem. But this doesn't help much b...
Greet asked 29/2, 2016 at 16:51
2
Solved
I have implemented a room database which is distributed from a resource file using SQLiteAssetHelper the first time the app is started.
The database contains game status data so if the Player want...
Alkyl asked 16/4, 2018 at 14:27
5
Solved
i created a folder called "try" in the path /home/bhishan/Copy/try
then inside that folder i gave some commands:
my commands are follwing:
curl -s -O \
http://github-media-downloads.s3.amazonaws....
Signification asked 19/8, 2015 at 0:32
7
Solved
I'm on 4.4.2, trying to delete a file (image) via uri. Here's my code:
File file = new File(uri.getPath());
boolean deleted = file.delete();
if(!deleted){
boolean deleted2 = file.getCanonicalFile...
Readjustment asked 9/7, 2014 at 17:3
5
Solved
I'm trying to delete a temporary file after sharing it via android's Intent.ACTION_SEND feature. Right now I am starting the activity for a result and in OnActivityResult, I am deleting the file. U...
Favor asked 5/1, 2011 at 21:0
5
Solved
I am trying to write a command to remove recursively several files with different extensions (*.extension1, *.extension2 etc) from the current directory and all its related sub-directories.
So far...
Barron asked 5/6, 2014 at 11:23
7
Solved
How to make .BAT file delete it self after completion? I have a simple bat file that terminates a process. I want that .BAT file to delete itself.
Ikkela asked 22/5, 2010 at 17:5
© 2022 - 2025 — McMap. All rights reserved.