Hi,

I use essentially the same procedure to remove recordings, but call the REST-endpoints via curl with another shell-script, see the attached files.

Regards, Andreas

McKenzie, Adam schrieb am Tue, 18 Sep 2012 betreff "Re: [Matterhorn-users]...":
Hi Yemi,

I think there are three steps to remove a recording.

The first is to remove it from solr so that other people can't watch it 
anymore. This is done with the search REST endpoints at:
localhost:8080/docs.html?path=/search
It is called DELETE /{id}. The easiest way to get the necessary id is to play 
the recording and the url will be something like 
http://localhost:8080/engage/ui/watch.html?id=47314 where 47314 is the id you 
need to remove it.

The next is to get rid of the workflow from the system. Its best to copy the 
workflow id and the mediapackage id before you delete it. If you inspect the 
workflow (click on the little gear beside the status of the recording in the 
Status column). The workflow id is the one on the Workflow Instance tab 
(usually a number). Then click on the Mediapackage tab and mark down this id 
too. I then remove the workflow by going to:
http://localhost:8080/docs.html?path=/workflow
Use the POST /stop endpoint. Just put the workflow id in and it should 
disappear from the GUI.

The final step is to remove the data from the hard drive. I wrote a tiny shell script where I put 
in the workflow id and the mediapackage id and it clears it off the drive (its attached). You can 
find the locations you need to clear out with find /location/of/data/dir -name 
"workflowid" and find /location/of/data/dir -name "mediapackageid" and changing 
the shell script to delete the right locations.

If someone else has a better way of accomplishing this I would be up for 
documenting this or that approach.

Cheers,
Adam

Adam McKenzie
   Programmer Analyst
   Applications, Information and Communications Technology
   Ph: (306) 966-8241

   [Description: Description: Description: Description: 
cid:[email protected]] <http://www.usask.ca/>
________________________________
From: [email protected] 
[[email protected]] on behalf of adeseye a. (aa5g11) 
[[email protected]]
Sent: Tuesday, September 18, 2012 6:34 AM
To: [email protected]
Subject: Re: [Matterhorn-users] How to delete recordings in version 1.3


Is there any other way to delete recordings without using the adminstrative UI

________________________________
From: adeseye a. (aa5g11)
Sent: 14 September 2012 23:37
To: [email protected]
Subject: How to delete recordings in version 1.3

Please how can I delete a recording from the matterhorn administrative UI.

yemi


-----------------------
[email protected]
01/58801 DW 41523
mobil: 0664/60 588 4523
TU Wien
DVR-Nummer: 0005886
-----------------------

Attachment: delete_recordings.sh
Description: Bourne shell script

Attachment: cleanup_onhold_recordings.sh
Description: Bourne shell script

_______________________________________________
Matterhorn-users mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn-users

Reply via email to