Delete the file/folder itself from file system.

def delete(self):
        """
        Delete the file/folder itself from file system.
        """
        if os.path.isfile(self.path):
            os.remove(self.path)
        else:
            shutil.rmtree(self.path)