@staticmethod
    def find_expired_slices():
        try:
            from openflow.optin_manager.sfa.drivers.OFSfaDriver import OFSfaDriver #Avoiding circular Deps
        except:
            pass
        slices = ExpiringComponets.objects.all()
        expired_components = list()
        for slice in slices:
            expiration_date = int(datetime_to_epoch(utcparse(slice.expires)))
            if expiration_date <= int(datetime_to_epoch(utcparse(datetime.utcnow()))):
                try:
                    OFSfaDriver().crud_slice(slice.slice,slice.authority, 'delete_slice')
                except:
                    pass
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/optin_manager/sfa/openflow_utils/expiration_manager.py/ExpirationManager.find_expired_slices/original