Delete Multiple Files
Hi All,
I tagged this question on the end of another post but I am
unsure if that is still live!
I have just started using PHP and have discovered the way to
delete multiple records using checkboxes (
see
this post). But I also need to be able to delete the images
associated with each record deleted to save on server space.
Any help very welcome!!
On Wed, 14 Mar 2007 11:49:32 +0000 (UTC), "Jansolo"
<[email protected]> wrote:
>
> I have just started using PHP and have discovered the
way to delete multiple
>records using checkboxes (see this post). But I also need
to be able to delete
>the images associated with each record deleted to save on
server space.
Just replied int he other thread, use unlink.
Steve Fleischer
steve at flyingtigerwebdesign dot com
Hong Kong
Similar Messages
-
Deleting multiple files in aperture
How do I delete multiple files? I think it involves the apple key + another key but I cannot find a reference to it.
Also, where is the setting for changing "primary only"?
Thanks in advance!You can't select multiple items in the Project Inspector.
To delete multiple images use the shift key to select contiguous images or the Command key to select non-contiguous images. Then press command + delete.
Primary only is under the edit menu and there's a button with a "1" on it
DLS. -
Retaining links when deleting multiple files
Hi there,
I need to delete a lot of files from a project, but I don't
want to lose the links to those topics in other files. If I delete
a single file, Robohelp HTML displays a dialog box that gives the
option to keep references to that file in other files. This is the
behaviour I want to achieve.
When I try to delete multiple files, however, Robohelp
doesn't give the option to keep the references and the links
disappear from other files.
Does anyone know any way to delete mulitple files and keep
all references to those files? I really don't want to have to
delete every topic individually!
Many thanks
KateHi Rick,
Thanks very much for that quick reply. That's a good idea - I
don't why I didn't think of it
I deleted some files and they disappeared from Robohelp
before my very eyes...then I tried again in another folder and they
didn't disappear, but nasty red crosses appeared on their icons. It
doesn't seem to matter whether I have Robohelp open or closed - the
red crosses appear all the time now.
Any ideas why some topics delete seamlessly, and Robohelp
doesn't want to let go of others?
Cheers
Kate -
How can I delete multiple files at a time from "Finder"
I can't possible delete the thousands of junk files that showed up in Finder once I downloaded Maverick. I can't delete more than one at a time now. Why won't the highlighting stay in place on more than one file that I want to delete?
How are you trying to select multiple files?
What makes you think that "thousands of junk files [...] showed up in Finder once I downloaded Maverick" (or even installed it)? -
Delete multiple files from multiple locations using config file
Hello All,
I am fairly new to .net and I have to make a windows application to delete files older than 90 days from multi ple locations. these multiple locations cant be hard coded and have to be configurable, also the number of days to delete the files have to be
configurable.
I think the answer to this would be an app.config file. but dont know how to use the same.
can anyone tell me about this and if possible help me out with a code snippet.?Add settings like picture below. Add the string by press the double dot icon.
The use the code below
static void Main(string[] args)
int deleteDays = Properties.Settings.Default.DeleteDays;
StringCollection folders = Properties.Settings.Default.Folders;
foreach (string folder in folders)
DirectoryInfo info = new DirectoryInfo(folder);
FileSystemInfo[] deleleteFiles = info.EnumerateFiles()
.Where(x => x.LastWriteTime < DateTime.Today.AddDays(deleteDays))
.ToArray() ;
foreach(FileSystemInfo file in deleleteFiles)
File.Delete(file.FullName);
jdweng -
Trying to delete multiple files with very basic VBS script
Good day,
I've found a script and modified it for an input box to accommodate multiple files being deleted but I'm not sure if it is capable or if I'm just using the wrong syntax within the input box:
Script:
Set obj = CreateObject("Scripting.FileSystemObject") 'Calls the File System Object
obj.DeleteFile inputbox("Enter files and path to be deleted") 'Deletes the file throught the DeleteFile function
When prompted and I put just one file path to the file I want deleted it works, but if I put in multiple files and their paths either separated by colan, semi colan or space, it says "bad file path or number". If anyone knows of a VBS
or powershell script that references a text file or .csv spreadsheet that would be sooper handy!
Many thanks - RP
bertoThank you Bill!
Sounds like I need a different method all together. I found this script that references a .csv file with the folder paths and file names; does it seem legit to you guys? Also for files that are past the 256 UNC character length, is there a work
around for that?
12
$files = Get-Content "C:\scripts\delete-files.csv"
13
14
foreach ($file in $files) {
15
Remove-Item -Path
$file -force
16
17
18
write-host -foregroundcolor yellow "Delete action complete"
berto
Try this to see:
$files = Get-Content "C:\scripts\delete-files.csv"
foreach ($file in $files) {
Remove-Item -Path $file -force -WhatIf
write-host -foregroundcolor yellow "Delete action complete"
¯\_(ツ)_/¯ -
PowerShell - Deleting multiple files that contain a specific phrase.
Hi all,
Can anyone show me an example of how to remove multiple files that contain the same phrase.
I would like to search through each text file in the folder C:\temp\PS for the following phrase ""Not a valid request while running in standby mode." and if this phrase exists delete the text file(s).
Any and all help is appreciated. Thank you in advance.
GazHi Gaz,
Give this a try:
$string = 'Not a valid request while running in standby mode.'
Get-ChildItem C:\Temp\PS *.txt | ForEach {
If ( (Get-Content $_).Contains($string)) { $_ | Remove-Item }
EDIT: And I should always refresh the page first..... Oh well.
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing) -
How do i delete multiple files of the same video in the "all videos" folder?
i am running out of space on my computer so i went to the "all movies" folder to see if there were items there i could get rid of. when i went i discovered that there were many instances of the same video being there as many as 4 or 5 times. why is that? i tried to delete them but they still remain. how can i single it down to just one file?
try the script (version 3) in this post,
Remember last folder location lost with Mac Lion updates -
Unreliable - Deleting multiple files/folders with the same name?
I have recently found when trying to delete folders with the same name it is unreliable, is there a better way, ie termin that would work for the following...
I have 1000's folders with sub-folders to delete...
Please see screenshot each folder is identical apart from 'copy #' at the end of the folder
1. using search in top level folder toobar for "instructions"
2. 647 results are retuned
3. Select all and [cmd] [del]
4. Repeat step 1 but some folders are still are found.
Any ideas ?Go ahead and doubt if it makes you feel superior.
For others:
If your pom has this:
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${jsf.version}</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${jsf.version}</version>
</dependency>
where jsf.version = 1.2, change jsf.version to 1.2_10 -
I am trying to cleanout my iTunes Music Library. I would prefer to wipeout the music library and then reinstall my music. I do not know how to delete multiple files besides doing one by one. Any help is much appreciated. Thank You.
Dupin is for Mac. For PC users I've written a script called DeDuper which can help remove unwanted duplicates. See this thread for background.
tt2 -
Can ODI delete a file from an FTP server
Hi
I'm downloading a file via FTP - but I want that file removed after it's downloaded.
So I want to 'move' the file down, rather than copy it... or delete it after it has downloaded
Is this possible with ODI?
Many thanks
Z.Have a read of :-
Re: Is this possible?
Re: Delete multiple files from FTP Folder
Ok?
Cheers
John
http://john-goodwin.blogspot.com/ -
How to delete multiple emails at one time instead of individually
I want to select random emails (not all in a row sequentially) and delete with single function. I don't want to have to delete each unwanted email individually.How to d this?
Also, There is no delete function at top of email screen-why not?Have you ever deleted multiple files in Explorer at once? Thunderbird works the same way.
Select the first message you want to delete. Then press and hold Shift and select the last message to be deleted. This selects all messages in between the first and the last one.
By holding down Ctrl and click on an individual messages you can select or de-select it.
Then press Del to delete all selected messages. -
How do I delete multiple photos from the Camera Roll?
How do I delete multiple photos from camera roll without doing it one at a time?
Thanks for your posts on this - it's something I've been wondering about, too.
I do agree with Bonzo that it seems strange that there isn't a way to do it *efficiently* without having to hook the iPad to a computer.
I know there is an alternative: in other words, you're right, Lawrence - it is possible to delete multiple files at once by following your instructions (i.e. tapping on each photo once, etc.) - but if you want to delete lots of photos, it takes ages to tap on every one of them.
Does anyone else out there know of a way to delete multiple photos on the iPad/iPhone/iPod touch without having to tap on each photo separately, or having to hook up to a computer?
I'd be really grateful for any help on this. Thanks! -
How to delete multiple old ITUNES LIBRARY files safely ?
I'd like to clean up my Itunes LIBRARY files, but don't know what's safe to do and not to do. (I have Itunes 8.1 / OSX10.4.11)
MY QUESTION IS TWOFOLD :
(1) how do I create a new Itunes library file now with today's date; and
(2) how do I delete multiple (old) Itunes library files, without risking the loss of what I've got ?
This all stems from exploring Itunes as a result of a problem I had today... when trying to import mp3's from my terrabyte drive, after about 150 successful mp3 track imports, Itunes froze and everything else on my MAC froze as well (constant spinning colored wheel). After many failed attempts to force quit Itunes, I turned off my MBPro. On restarting, Itunes tooks ages to "import" files. Eventually Itunes opened but with only half of my original tunes (1500+ songs 8.11GB) and had nothing from today's import.
I found a post suggesting to hold down OPTION while starting Itunes. Then I selected a file from my hard drive > me > music > Itunes > "Itune library" with the most recent date and shezam, Itunes once again has all my songs, as before. Nothing I imported from the terrabyte drive today appears however, but no matter.
In my "Itunes" file there appear MULTIPLE Itunes libraries ! such as Itunes library, Itunes Library (damaged), and as well a folder called "Previous Itunes Libraries" which itself contains multiple Itunes Library files and multiple "previous Itunes Library files" with dates back to 2007. These I want to clean up and delete .... should I ? ... Can I ?
I really could use some words of wisdom from the wise ! Thanks in advanceWhenever you install a new version of iTunes and run it teh first time, iTunes will create a backup of the current iTunes library file and copy it into \Music\iTunes\Previous iTunes libraries, then update the iTunes library file in \Music\iTunes\ for the current version of iTunes.
-
How to Delete Multiple/All Files in Reader
How to Delete Multiple/All Files in Reader on iPad3?
Read this:
http://forums.adobe.com/thread/1012973?tstart=0
Maybe you are looking for
-
Open Apex lists in new tabs/pages?
4.2.1 24 - theme Hi There, We have created a lists (shared objects) with a couple of links which is displayed on all application pages. It is easy to maintain. My question is that the links open in the same page. I was hoping we could use something l
-
How to create a group of cost element
Hi, i want to integrate a group of cost element in KP06, but i don't know how to create it. please what is the transaction to do that ? Regards.
-
How can I delete a plugin I can't find
It seems that I have a plugin from Directv that may be causing me to lose wifi in my house. (not sure of that though). I have search for it using finder and have searched in libraries. Any idea where I can find it? I get the name of it because it
-
How do I install my photoshop elements to my new laptop that does not have a cd disk drive?
How do I install my photoshop elements 12 to my new laptop that does not have a disk drive?
-
Satellite A200 - Headphones and microphone not working (Win XP)
I have fully operational Windows XP with everything working just fine. However, today I tried to connect a microphone to the notebook, the software noticed it, muted the internal speakers, but there is no sound in the headphones whatever I do. I trie