Jump to content

How to delete/replace image through API?


Lars282
 Share

Recommended Posts

Hey,

How do I delete an image? I just gave $user->user_photo->remove() a go, and accidentally deleted the entire user ...

Basically, I wan to replace the old image with a new one, though $user->user_photo = new simply adds the new one, still keeping the previous ...

Thanks

Lars

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...