(self, *args)
This method allows to delete a value at a given path in the storage.
        :param: ('path', 'to', 'the', 'value')
        deletes self.values['path']['to']['the']['value']
This method allows to delete a value at a given path in the storage.
        :param: ('path', 'to', 'the', 'value')
        deletes self.values['path']['to']['the']['value']
This method allows to delete a value at a given path in the storage . : param : ( path to the value ) deletes self . values [ path ] [ to ] [ the ] [ value ]
def delete(self, *args):
        """
        This method allows to delete a value at a given path in the storage.
        :param: ('path', 'to', 'the', 'value')
        deletes self.values['path']['to']['the']['value']
        """
        value = self.values
        # Loop over elements of path.
        for arg in args[:-1]:
            # Check element in path exists.
            try:
                value = value[arg]
            except KeyError:
                # If not, end the process.
                return
        # Finally, delete element at the right path.
        value.pop(args[-1], None)
def delete ( self , * args ) : value = self . values # Loop over elements of path. for arg in args [ : - 1 ] : # Check element in path exists. try : value = value [ arg ] except KeyError : # If not, end the process. return # Finally, delete element at the right path. value . pop ( args [ - 1 ] , None )