Questions tagged [delete-file]
Tag for questions regarding file deletion. O.S. independent.
1,898
questions
0
votes
0answers
9 views
how to delete video from internal storage in adapter
I'm making a video player app, and I want to add a video deletion feature in my app. When I successfully load video from internal storage, and when I click delete button, it does not perform the ...
0
votes
1answer
25 views
Deleting files using Swift that require admin privileges
I am currently working on a Mac Application where I need to delete files(potentially malicious) from /Library/LaunchDaemons directory and other similar directories where I would need administrator ...
0
votes
1answer
27 views
delete a list from internal storage in android studio
I have been trying to delete a list of selected items from internal storage but unable to do so.
List<ItemFiles> selectList = new ArrayList<>(); // list to delete
case R.id.delete:
...
-1
votes
0answers
26 views
How do I delete a structure from file in c++? [duplicate]
I am trying to delete a structure from a binary file. basically its an bank account system in which I create an account(which is a structure). now I created a function which will search and delete ...
0
votes
1answer
27 views
Need to delete every file that includes a specific word
I am trying to make a button that deletes all files that include the word "cast" because I have many files with that word included but all with a different prefix e.g. "(copy1)".
...
0
votes
1answer
25 views
What method Apache camel uses to delete the file using delete=true, is it JDK FileUtil.deleteFile(file)
I have been asked to provide details on how Apache Camel delete functionality works behind the scene, the method used and if the deleted file can be recovered as we are deleting PCI file. Based on my ...
0
votes
1answer
27 views
visualbasic cant delete .zip file in a directory
i have three folder in "D:\TestField". These are "backups","ExampleFileUpdatePrimary","ExampleFileUpdateSecondary.zip". I can delete "D:\TestField\...
0
votes
2answers
65 views
java.lang.SecurityException in android studio
I am trying to delete multiple items but the problem is that when the alert dialog is clicked yes to delete those items, all the selected items are deleted but the dialog stays on the screen instead ...
0
votes
1answer
38 views
delete in internal storage in android studio [duplicate]
I am trying to delete selected files from the storage. Here is my implementation
File dir = Environment.getExternalStorageDirectory().getAbsoluteFile();
File file = new File(dir, String.valueOf(...
-1
votes
0answers
11 views
I can't delete or create anything / any folder or file in Ubuntu.Only access to read only
I have applied these command
rm -rf build
sudo rm -rf
please help me if anyone have solution for this. Thanks in advance.
2
votes
1answer
63 views
Android 11.0: How to delete a file with Storage Access Framework?
I'm trying to delete a file with it's Uri, but I don't understand how to add flags on this file (I'm new on android).
My application manages both media files and others files.
I managed to delete the ...
-1
votes
1answer
37 views
Remove all files with a given extension using scala spark
I have some csv.crc files generated when I try to write a dataframe into a csv file using spark. Therefore I want to delete all files with .csv.crc extension
val fs = FileSystem.get(...
0
votes
1answer
38 views
delete multiple items in android studio
I am trying to delete multiple items in android but the problem is that when I select multiple items and press delete the dialog box does not disappear and you have to press delete as much times as ...
0
votes
0answers
17 views
Unable to delete/access a file. Getting error “Numerical result out of range”. How to forcefull delete the file?
How can we forcefully delete a file in linux, without using command line tools.
Some file in my VM have been corrupted strangely, everytime when try to access these files, get error like "...
0
votes
0answers
7 views
Access is Denied when trying to delete, rename, or move folder that shows as “File Folder (.0)” as Type
I'm having quite the issue over the last few days. I'm trying to test migration of on-premise storage replication to OneDrive, and while trying to move documents from the network share to my local ...
0
votes
0answers
6 views
How to share audio file from internal storage
public void onShareClick(int position){
String sharePath = Environment.getExternalStorageDirectory().getPath()
+ "/My Device/Allah_O_Akbar.mp3";
Uri uri = Uri....
1
vote
1answer
23 views
Where do deleted files from Apache Netbeans go?
I accidently deleted source folder from my Netbeans Project , but when I try History->Revert Deleted nothing shows . Also I checked Recycle Bin and also the hidden Recycle bin on D: Recovery Drive ...
0
votes
1answer
33 views
file.delete is not working in android studio
I have the delete button which is supposed to delete the selected files in adapter class. But it is not working at all nothing happens when the button is clicked. I don't understand what is the ...
0
votes
0answers
32 views
Delete file from Internal Storage in Adapter class in android
I want to delete selected files from phone storage in android. I have tried some ways but it is not working, there is no error as well.
public class MyAdapter extends RecyclerView.Adapter<MyAdapter....
-2
votes
2answers
52 views
how to prevent python script from deleting itself?
WARNING WHEN USING THIS FILE IT CAN DELETE FILES ON THE SAME FOLDER
hi this is a python 3 script for deleting files i wonder how to prevent it from deleting itself
the code:
import os
import sys
...
0
votes
1answer
24 views
How to prevent WordPress Media Library from removing image?
I have a custom post type that must have its feature image. Its feature image also appears in the Media Library where user can delete the image/attachment file permanently. But I want to prevent user ...
0
votes
0answers
55 views
Pdf file renaming and deleting not working in my Android app
I am unable to rename and delete the pdf file in my pdf reader app using renameTo() method to rename the file and file.delete() method is also not working to delete the pdf file from the internal ...
0
votes
1answer
41 views
Unable to rename and delete my pdf file in my Android App
I am unable to rename and delete the pdf file in my pdf reader app using renameTo() method to rename the file and file.delete() method is also not working to delete the pdf file from the internal ...
0
votes
1answer
217 views
Need help for React code fetch request delete operation
I am able to post and get data but unable to delete must be a problem with an id that I am passing to the delete note function.
these are my files:
Note.js
import React, {useState} from 'react';
...
0
votes
1answer
36 views
Delete A Specific File From Directories Based On FIND Results
I have the following find command that searches all subdirectories and lists those folders that contain a *.RAR AND a *.MKV file.
find -type d -exec sh -c '[ -f "$0"/*.rar ] && [ -f &...
-1
votes
2answers
147 views
Result of 'File.delete()' is ignored - android studio
I was trying to make a button which can delete a file (video file) which is downloaded by the app. When i used File.delete() then the android studio says it will be ignored and by that i came to know ...
0
votes
0answers
31 views
Trying to self delete a file with unlink() with no success
A new client who has a WordPress site needed to access his administration from which he was locked out by the person who setup the site. He only had FTP access so I had to create a script to connect ...
0
votes
0answers
10 views
PowerShell to delete current users folder and files
Want to delete any files of folders name beginning with word "Leap" in file location localdata\Microsoft_Corporation\
0
votes
1answer
39 views
Copying and deleting files from google storage but getting python error as quote_from_bytes() expected bytes
I am trying to implement a requirement where we are supposed to move the files from one particular directory in google cloud storage to another archive directory after the process is over so that the ...
0
votes
0answers
18 views
How to get the list of all files in android device^s internal memory?
I know there are lots of same or similar topics not only in stackoverflow but also in other sources in internet world. None of them helped me so I needed to ask my particular case. In fact, at the ...
0
votes
0answers
18 views
how to delete or rename file for local videos
I am taking video from my internal storage and I want to Rename file or Delete file Just like simple we are doing in MX player, VLC player if anybody can help me so please help me I tried many times ...
0
votes
0answers
14 views
Dropzone.js remove file preloaded from server
i try to implement dropzone for my file :
this is my code , with php i insert all image from server:
var foto_upload= new Dropzone("#documenti_personali",{
url: "<?=base_url().'/...
0
votes
1answer
25 views
Unable to delete React project folder
I am trying to create react app using following command
npx create-react-app sales
unfortunately its getting stuck at some point or other while installing packages. This time it gets stuck at below ...
0
votes
1answer
33 views
Ansible - win_file module - force deletion if file in use
We are using ansible win_file module to delete a particular folder in a Windows Server machine with the following code:
- name: Delete <folderName> directory
win_file: path=C:\<pathToFolder&...
0
votes
1answer
16 views
Delete Specific file type in bulk
I need to delete files with a specific extension and the script I have does that but it does it one by one but not in bulk and I have honestly been very confused on how to complete this can I get some ...
1
vote
1answer
78 views
OCI CLI delete oldest file from object storage
We are uploading our SQL Server backups to the OCI object storage because of DR reasons. Whenever a new backup is uploaded the oldest one is supposed to be deleted.
Is it possilbe to somehow just ...
0
votes
1answer
47 views
Symfony 5 vich_upload delete file not working
I have got an issue with Vich_upload on symfony 5, I can't delete the file with a normal crud. I check on a lot forum and git issue, I use the lifecycle event configuration in the documentation but ...
0
votes
1answer
27 views
How to really delete all files in a folder and the folder on Windows using python?
this doesn’t delete the folder
shutil.rmtree('C:\\Users\\0\\Downloads\\preoutput')
this one causes this error
Message=[WinError 5] Access is denied: 'C:\Users\0\Downloads\testdelete'
import os
import ...
0
votes
0answers
74 views
Unable to delete (uninstall) vcpkg
I installed vcpkg following this instruction, and later figured out that I don't need it.
I've done vcpkg integrate remove before deleting as explained in This post.
I can delete every folder except ...
2
votes
1answer
25 views
Ini4j - How to close the file stream after parsing error
I have the following code below which uses the ini4j library to load a file as a .ini file.
Ini configIni;
public void setupConfig()
{
String configFilePath = "config.ini";
...
1
vote
1answer
56 views
Google-Cloud-Storage | Artifactory does not delete objects in bucket
We are currently in the process of setting up an Artifactory Pro instance on GCP and want to use GCS as its Filestore. The connection to the bucket is successful, uploads and downloads to and from the ...
-2
votes
1answer
30 views
delete files on amazon s3 with asp.net
I have an asp button, when the button is clicked , i want to delete my files on s3
But when I click the delete button, it just loads.
My web application is just loading without stopping.
what is the ...
-2
votes
2answers
60 views
Why won't Java delete my file even though the file is closed?
I know that this question has been asked and answered many times on this site. The basic solutions are:
(1) Make sure the file is closed.
(2) Ensure the program has the absolute path.
As far as (1) ...
0
votes
2answers
54 views
Read .txt configuration file into string?
I'm currently tossed into having to try and create a sort of housekeeping utility that we can set up scheduled tasks to run.
I've got it working hardcoded to delete from a specific folder and it ...
0
votes
0answers
15 views
In CodeIgniter, how to delete database cache dynamically with specific id?
Suppose my controller fetch specific data for delete cache.
public function clear_cache($id){
$this->db->cache_delete('controller','method')
}
Blockquote
===============================...
0
votes
0answers
31 views
-bash: /usr/bin/sudo: Argument list too long MacOS Mojave 10.14
I tried to secure empty trash over 20,000 files in terminal by using:
$ rm -rf ~/.Trash/*
received: /bin/rm: Argument list too long
So I tried:
sudo rm -rf ~/.Trash/*
received: /usr/bin/sudo: ...
0
votes
0answers
32 views
Python: How would I remove specified files using subprocess.call?
Beginner programmer here. I am trying to use the following function to remove specified files:
import subprocess
import os.path
from pathlib import Path
# Assigns variables
home = str(Path.home())
...
0
votes
0answers
18 views
delete file laravel dropzone
i have a problem when i delete file. My file is deleted correctly, but in my folder "storage/app/public" keep another folder with my file. I explain myself better, i´m uploading a file with ...
0
votes
1answer
58 views
How to delete the files older than 6 months old in a directory using nodejs/expressjs?
Here I am not talking about the temp files directory.
Its about my project.
This is the following structure I am trying to follow to delete the files from a directory for every user who logins in my ...
1
vote
1answer
56 views
Remove Image option in Edit Form
I want to delete image in edit form and to show the upload file option .How can I achieve this using Ajax since I'm using tab panes for multiple forms.
Here is my code,
Biodata.cshtml
<div class=&...