Thank you for that clarification.Note that the query I proposed is only suitable for MySQL, and only addresses movement of files. It does not address clean-up only.
I am not sure what the original poster wants to do -- move recordings to another disk defined as a "Recorded TV" location, or move recordings to the "Videos" section. But whichever he wants, he should write the tool to satisfy his requirements, not mine!
-- from CyberSimian in the UK
United Kingdom