Skip to Content
avatar image
Former Member

How to delete a versions folder

Hi All,

we deveopled a report which should delete all version folders, which contain documents without a head revision (current version).

Works fine on the front, but I have a question about the backend exactly about the database:

(1) When I delete a versions folder within my code, would be all included files be deleted from the database?

(2) Is there a difference between deleting per command or per code or is it the same? Has the deletion been monitored by a Repository Service?

Many thanks

Steve

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 11, 2010 at 08:47 AM

    >

    > (1) When I delete a versions folder within my code, would be all included files be deleted from the database?

    > (2) Is there a difference between deleting per command or per code or is it the same? Has the deletion been monitored by a Repository Service?

    > Steve

    1) The version storage folders expose the database content. So yes, deleting versions will affect the database accordingly.

    2) A command is implemented in code as well, so there should be no difference (assuming they use the same API, which they should)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Julian,

      I was waiting for a clear answer.

      Now I got it from you.

      Really thanks for that - now I can close the thread

      Bye Steve

  • avatar image
    Former Member
    Jul 11, 2009 at 07:33 AM

    Dear Steve,

    Open Content Administration-> KM Content--> Document Repository(e.g. Documents) -


    > .system ---> versions there you observer the impact of running your report.

    All version files are stored there so, if the file exists there than the file is also there in DB.

    But mostly i believe files must be deleted from database after running report.

    Regards,

    Tushar Dave

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tushar or other,

      your answer ist not very helpful.

      You said "All version files are stored in the versions folder - if the file exists there than the file is also there in DB".

      And then "but mostly i believe files must be deleted from database after running report".

      OK when I delete the versions from the versions folder - are they still existing in the DB?

      Thanks

      Steve

      Edited by: Steve on Feb 11, 2010 7:42 AM