Unable to delete photo from custom albums.

Hello, I am new to ios programming.
I have suceeded in creating a custom album in user's photo library by using the sample code from this here "http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-cate gory-for-download/". Now I want to provide a facility to delete images from the custom album from my app. I tried using the code given below:
I am able to get the asset url of the image and even the image's original name, but it does not seem to delete the image. - (void)removeImage:(NSString*)fileName { NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *fullPath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.png", fileName]]; [fileManager removeItemAtPath: fullPath error:NULL]; NSLog(@"image removed"); } 
Please let me know what I am doing wrong, or there is something else which I am missing?
Thanks,
Laxmilal Menaria

OK.  Could you be more SPECIFIC and add some details.  WHERE is the tab you mentioned?
I have the same problem mentioned above and have tried several different approaches, all to no avail.  I can select the photos in in Collections and Moments, but the trash can icon turns grey and I cannot DO anything with them after I select them, other than share them with something/someone else. 

Similar Messages

  • Unable to delete photos from my ipad2 .

    I am unable to delete photos from my ipad2. I am able to select the photos to delete but when I press the red delete button nothing happens. Is anyone else having this experience? Is there a known problem. Is there a solution?

    You don't say what type of photos - were they taken with the iPad or synced from your computer ?
    Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/wesites etc can be deleted directly on the iPad - either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view. Photos that were synced from your computer are deleted by removing them from where they were synced from and then re-syncing (if you were able to delete them directly on the iPad, then the next time you synced photos they would be put back onto the iPad, unless you remembered to also remove them from your computer).

  • When I edit and/or delete photos from an album in iPhoto is there a way to make that what happens in the folder in finder?

    When I edit and/or delete photos from an album in iPhoto is there a way to make that what happens in the folder in finder? I am new to Mac. I've updated the operating system and iPhoto.

    If your iPhoto Advanced preference pane is setup like this
    all photos you import into the library are COPIED into the library.  Thus those photos in the folders outside of iPhoto are redundant and can be deleted to save space on your hard drive. There no need to keep those copies in the folders.
    If you do have your advance preferences set as shown above you can access your photos for use outside of iPhoto according to the following User Tip by Terence Devlin which is the best treatise on how to access photos (for use outside of iPhoto):  How to Access Files in iPhoto.  Otherwise you access your photos from within iPhoto. 

  • How is the album and folder connected and when I delete photos from the album it also deletes from the folder?

    How is the album and folder connected and when I delete photos from the album it also deletes from the folder?

    In what application? iPhoto? If so: what version?

  • HT4528 delete photos from an album

    How do you delete photos from an album which is not part of the camera roll?

    You'll have to that on the computer you use to sync your photos with. After you deleted or deselected the photos or folders that you don't want anymore in the photo pane in iTunes, syncing will remove them from your phone.
    Check also: iTunes: Syncing photos

  • Unable to delete photos from iPhone 5 Model MD655LL/A

    My wife needs to free up some space on her iPhone so she can take more photos and videos.  She has an iPhone 5 Model MD655LL/A.  In General > About the device shows a Capacity of 12.7 GB and Available 1.1 GB.  She has 9 videos and 1,488 photos on this phone. She also pays about $4 a month for iCloud storage.
    I've connected this device to our Mac and to one of our PCs.  We are unable to remove the photos from this phone.  Upon selecting a photo from any collection, I can see the trash can icon on the lower right, but it is greyed out.
    Now, I've read that Apple makes it impossible to delete the photos that are synced to the iCloud.  This makes sense, since the syncing process would add the photo back to your device if it's not detected in the cloud.  Our dilemma is this.  She needs additional space on her phone. She thought that the iCloud service would provide her with additional space beyond the limitations of her phone where she could store photos without using up her phone's storage space.  Based on what I briefly read, it appears that we misunderstood the iCloud storage, at least in this regard.
    Here is what I need to be able to do.
    1. Back up the photos from her phone to one of our devices.  Either the Mac or the PC, it makes no difference to me.
    2. Then delete the photos from her phone, but retain them on the device where we backed them up.
    I expected to be able to use Windows Explorer on the PC in Windows 7.  But upon connecting the phone to the PC, there is no directory to the phone that shows me the image contents.  Instead, there is a folder under "Computer" named "iCloud Photos". Selecting that shows a message where I expected to see a listing of contents on the device, which reads "iCloud Photos is not enabled" followed by a link "Open iCloud Control Panel".  Selecting that link opens the iCloud dialog, showing iCloud Storage of 182.53 GB of 200 GB available.
    Selecting the checkbox next to Photos and choosing the Options button just shows a dialog that lets me choose the iCloud Photos Location on my PC.  But I don't see a list of the photos.
    3.  Where is a dialog that I can use to drag-and-drop in Windows 7 from the phone to a directory using Windows Explorer?
    I need detailed, step-by-step instructions for this.  Do we just need to cancel the iCloud account?  The storage doesn't do us any good if upon deleting a photo from the iCloud the syncing process will delete photos from our computers and our phone.  Do we need to configure the iCloud account differently?  Also, how can we tell if a photo is locked in the cloud, and thereby permanently affixed to her iPhone.
    Thanks for helping us.  This has been very frustrating.

    The "delete after Import" message will not always appear after the import.  It appears, if you are importing from a camera or card, but I do not see it, when I import from a mobile device with iCloud Photo Library enabled and into a System Photo Library, that also uses iCloud Photo Library.
    See the Photos Help:  https://help.apple.com/photos/mac/1.0/?lang=en#/pht6c803201
    If a message asks whether you want to delete or keep the photos on your camera after they’re imported, click Delete Items to remove the photos, or click Keep Items to keep them on the camera.
    Unfortunately, this Help text does not state exactly, when it will be possible to delete after import and when not.

  • Unable to delete photo from ipad

    When I first got my ipad, I synced s photo from My Pictures.  I am unable to delete it from the ipad by using the delete option.  How do I get it off my ipad?

    Go to the folder on your computer that those synced photos are in. Move those photos elsewhere then sync and the photos will go away.
    Alternatively you can connect your device to your computer and open iTunes. Click on the name of your device and navigate to the photos tab. Choose a different folder or deselect any folder then sync. Your device will replace the photos on your device with what's in that other folder, or simply remove them all together if you deselect all photos syncing.
    Given the difficulty of removing synced photos, I stopped syncing photos a long time ago. Instead if I want photos on my iPad I'll just mail them to myself...or you can use any number of photos apps that have the ability to sync/share data, or upload them to something like dropbox and then download them onto your device. Downloaded or saved photos can be deleted from inside the photos app.

  • Why can't I delete photos from my album?

    I created an album today and am trying to sort through it by keyword to check that each photo is labeled correctly. I have been doing this by going to the search box below and choosing one keyword. However, iPhoto will not allow me to delete any photos from this album if I have any keyword selected in that search box. If anything is entered in the search box, and then I select photos and hit "delete", the following photo just gets highlighted, instead of the selected photo being deleted. How can I select all the photos in an album that have a particular keyword, then delete them from the album?
    Also, earlier I clicked a box that said "do not confirm before deleting", when I was deleting several photos from this album. Now I'd like that confirmation box to reappear. How do I get that back?
    Thanks for your help!

    Here's an example :
    - Say I have a group of photos flagged. I navigate to the "flagged" smart album. I then click open the "info" pane on the right. I see that a picture of my husband and son is wrongly keyworded "cousins". I click on the picture, then on the keyword "cousins". I hit delete and tab. "cousins" reappears. I try deleting "cousins" and hitting "tab" instead. The deleted keyword reappears again. I delete it about three more times before "cousins" finally disappears for good. Then I add the keywords "brett" and "noah" and click off the picture. Select the photo again, only see the keyword "brett" - no "noah". Yes, I could hit command-K and open the keyword menu, but that's an extra step that I shouldn't have to take, seeing as keywords are available in the info pane. I simply can't figure out what they are wanting me to do in order just to simply delete a keyword using the "info" pane. Is there a particular keystroke that makes a keyword addition/deletion "stick"? I have tried using tab, return, clicking off the keyword box, and no matter, those stinkers just keep undeleting themselves.
    Another example of incorrectly adding/subtracting keywords:
    - Again, in the "flagged" smart album, let's say I have clicked on the search box, and chosen to search for all photos with the keyword "san francisco". Now I look in those photos for ones of my husband. I highlight only those particular photos (by holding down 'command') and then using the info pane, type in the keyword "brett". Instead of adding "brett" to the selected photos within the keyword "san francisco", "brett" is added to ALL the photos with the "san fran" keyword.
    - Same scenario, only this time I want to delete a keyword from selected photos in the "san fran" group - but it gets deleted from ALL the "san fran" keyworded photos.
    I can get around this problem by adding photos, such as the "san fran" keyworded group, to a regular album, and then adjusting keywords, and the problem doesn't seem to repeat itself. To me this seems like an unnecessary step, but it does work. Anyways, within the flagged album, and I would assume within other smart albums as well (though I haven't tested this theory), I am having trouble with iPhoto adding/subtracting keywords as described above.
    Seriously, thank you again for taking the time to help me out here!
    P.S. I have deleted the preferences file 3-4 times already, and that doesn't seem to have any effect on these particular issues.

  • How do I delete photos from an album?

    I am trying to delete photos from albums I made this morning but no matter where I look all I get is a method that does not work as it tells me firstly to select album then select photo - this I cannot do.  What am I doing wrong?

    Do you have a mouse or trackpad?  Are you able to click on an item in the Finder and select it? If so try the following:
    1 - delete  the iPhoto preference file, com.apple.iPhoto.plist, that resides in your Home/Library/Preferences folder. 
    2 - delete iPhoto's cache file,, Cache.dbt, that is located in your Home/Library/Caches/com.apple.iPhoto folder. 
    3 - reboot, launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • Deleting photos from iphone album

    I have an Iphone 3G on 4.2.1. I recently synchronised around 80 photos onto my phone but cannot seem to now delete them. How do you delete photos from photo albums ? When I synchronise, the photos box is unticked and I always answer "yes" to "do you wish to remove existing photos ?" (but it doesn't remove them)

    The Camera Roll album contains the photos taken by the device or captured from other sources. When you copy a photo to another album, the whole photo is not copied. Instead a pointer is created in the new album that points to the original photo. If the original is deleted the pointers are also deleted.
    If you really want to clear your Camera Roll album and keep the photos, back up the photos to the computer you normally sync with using iPhoto on a Mac or whatever image capture application you have on your pc. Once the photos are on your computer you can delete them from the Camera Roll on your iPhone and organize them how you like by putting them in albums in iPhoto on your Mac or into folders on your pc. Then sync your iPhone and select the albums you want on the phone.
    The advantage to this system is that you have backup copies of your photos on your computer should something happen to your photos on the iPhone.

  • How to delete photos from synced albums?

    Hi,
    after a holiday I sync all photos taken with my iPad 1. I want to delete bad photos and resync them with my PC. But I can't delete photos from my iPad/iPhone. Is there any possibility to delete single photos?
    Thanks

    You can't delete photos synced from your computer directly on your phone, they are deleted by changing your photo sync selection when connected to your computer's iTunes.
    You can remove all photos that you synced from your computer by selecting and syncing just an empty folder.
    If you want to keep some of them on your phone then you will either need to use a third-party app to copy them back to your computer so that you can then include them in the photo sync ; or download a third-party photo management app on your phone such as Photo Manager Pro which you can copy the photos that you want to keep to (that app can copy photos to/from the Photos app and your computer) and then sync an empty folder to Photos

  • Unable to delete photos from iPad with Image Capture or PhoneView

    I recently downloaded about 50GB of photos to my iPad. They are RAW+JPG. Some of the RAWs are from a new camera that does not have RAW support on the Mac yet.
    Using Image Capture I downloaded all the photos to my Mac. They all have the green check-mark next to them indicating they have been downloaded.
    After confirming that the images transferred without becoming corrupted, I went back to Image Capture and selected all, then hit the Delete button. I confirmed that I really want to delete them all permanently.
    Then a little floating window appears that says "Deleting..." and it stays like that for a long time. Eventually Image Capture simply loses its connection with the Mac and simply leaves this console message:
    5/22/12 10:58:38.494 AM com.apple.launchd.peruser.503: ([0x0-0x91091].com.apple.PTPCamera[9744]) Exited with code: 255
    Back on the iPad, I see that some of the JPEG-format photos have been deleted while the RAWs that went with them are still there. Meanwhile for many others, both the RAW & JPEG both still remain.
    Any ideas what might cause this? Is it because the Mac doesn't yet have support for the RAW file and therefore doesn't recognize it as an "image" file?

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • How can I edit and delete photos from my albums? I can't find a way to delete old photos...

    Can anyone help me delete photos? There are old blurry and duplicate photos that we are unable to delete...

    If photos were synced from your computer then they can't be deleted directly on the iPad, you will need to remove/de-select them from where you synced it from on your computer and re-sync.
    http://support.apple.com/kb/HT4236

  • Removing deleted photos from catalogue/album

    I imported a large number of photos into the catalogue. When I did this I checked the "fix red eye auto" box. All photos that had the red eye removed were imported as well as an edited copy of these photos that had a suffix ("edited-1") added to the filename by PSE.  I then put all these photos in an album.
    As many of the red eye removals were terrible, I deleted all the "edited-1" versions via Windows. However my PSE album still shows these deleted photos as being in the album. I now constantly get prompts to look for these missing files. The search for each "missing" file takes forever. They won't be found as they have been deleted. Allowing the tool that looks for every missing file to do its work will have me sitting here for a week.
    How can I quickly refresh the album to reflect the fact that many photos have been deleted from the hard disk? Do I have to delete all photos from the catalogue and album and start again?

    I have found that while you can check "also remove from hard disk" when deleting files from the catalog, you cannot delete the folder the files were in. In other words it seems you cannot totally control the storage of your image files and folders on the hard disk (ie as Windows sees it) via PSE6. You have to write down what you did in PSE6 and then go back to Windows and edit/delete folders to reflect what you did from within PSE6. If this is the case I believe this is a huge flaw in PSE6. You should be able to have total control of your image files and folders via PSE6. Without this control PSE6 simply creates confusion.

  • How do you delete photos from the albums on 4S?

    How do you delete photo's and why is there the camera roll and Iphone roll? most ae duplicates?

    Photos synced to iphone have never had a trash can.  You delete them the same way you put them there - the sync process.
    If you do not want something on the iphone, then go to the phtos tab, deselect it and sync.
    Photo Album is not a duplicate.  It is simply another place from which to access the same pics as you have in your synced albums.  This is how iphone handles photos - always has.
    All photos synced to iphone can be accessed from Photo Library.  Those very same photos can alos be accessed from your individual photo albums.

Maybe you are looking for