Came across this in the RQL manual:

 <IODATA loginguid="[!guid_login!]" sessionkey="[!key!]">
  <MEDIA>
    <FOLDER guid="[!guid_folder!]">
      <FILES action="deletefiles">
        <FILE sourcename="Filename.gif"  deletereal="1" />
        ...
      </FILES>
    </FOLDER>
  </MEDIA>
</IODATA>

Apparently if you add the deletereal="1" attribute, the file will be
deleted regardless if it is being used or not.

Good luck!

Cheers,
Kim


On May 28, 9:05 pm, D <[email protected]> wrote:
> Hi guys.
>
> I created an RQL that deletes a page (with image content element).
> However, in my other RQL that deletes the image file in the asset
> manager folder doesn't work properly. It says that the image file is
> still in use (well in fact the page has been deleted already). Is
> there something I should do to forcefully delete the image? By the
> way, I'm using the RQLs in smart edit mode.
> -----------------------------------------------------
> "XMLString = "<IODATA sessionkey=""" loginguid="">"
>  "<PROJECT>"
> "<TEMPLATE>"
> "<ELEMENT folderguid="folder guid here">" +_
> "<FILES action=""deletefiles"">" +_
>  "<FILE filename="filename here"/>" +_
>  "</FILES>" +_
>  "</ELEMENT>" +_
> "</TEMPLATE>" +_
>  "</PROJECT>" +_
> "</IODATA>"
> ----------------------------------------------------
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RedDot-CMS-Users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to