Will Deluge remove the torrent by itself? If so CPS will lose the torrent. Please implement this in a different way simply by adding the following function to the Deluge class:

    def processComplete(self, item, delete_files = False):
        log.debug('Requesting Deluge to remove the torrent %s%s.', (item['name'], ' and cleanup the downloaded files' if delete_files else ''))
        if not self.connect(): <-connect to Deluge ?
            return False
        return self.utorrent_api.remove_torrent(item['id'], remove_data = delete_files) <-- Ask Deluge to remove the torrent