Drop all info about an app (images from filesystem and app info from shelve)

def drop_app_cache(self, appid):
        ''' Drop all info about an app (images from filesystem and app info from shelve)
        '''
        with shelve.open(self.shelve_path) as appshelve:
            try:
                del appshelve[str(appid)]
            except KeyError:
                # No such key in shelve, ignore
                pass
        for imgtype in ('icon', 'logosmall'):
            filename = '%d_%s.jpg' % (appid, imgtype)
            imagepath = os.path.join(self.image_path, filename)
            if os.path.exists(imagepath):
                os.unlink(imagepath)