Fixed media file delete bug in transfer task

Signed-off-by: Tom Wright <tom@inflatablecookie.com>