So I did get a chance to play with this and got something going with the HTSP python
added the deleteDvrEntry (Added in version 4)
Delete an existing DVR entry from the database.
Request message fields:
id u32 required DVR Entry ID
function to the library htsp.py under the source/lib tree ( clone the one above and change names )
I then cloned the support script for htspmon and added a command line option for id and replaced the async with the delete:
./htspmon_del --id 1
2013-10-17 14:21:46 INFO : connected to HTS Tvheadend [3.5.244~gf5c5ffd]
2013-10-17 14:21:46 INFO : using protocol v6
2013-10-17 14:21:46 INFO : capabilities [cwc,v4l,linuxdvb,timeshift,trace]
2013-10-17 14:21:46 INFO : Deleted hts dvr entry 1
2013-10-17 14:21:46 INFO : message:
2013-10-17 14:21:46 INFO : { 'success': 1}
The only cluge part is finding the id. I am using "grep -l <recordinfilename> /root/.hts/tvheadend/dvr/log/*" to pull it from the hts filesystem.
Code changed:
# Authenticate
if opts.user:
htsp.authenticate(opts.user, opts.passwd)
log.info('authenticated as %s' % opts.user)
# delete dvr entry
args = {}
if opts.id:
args['id'] = opts.id ;
htsp.deleteDvrEntry(args)
log.info('Deleted hts dvr entry %s' % opts.id)
# Process messages
</pre>