cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete a versions folder

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>

> (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)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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