def remove()

in sample-apps/custom-model/code/model/model.py [0:0]


    def remove(self, path):
        """Removes a file or directory from /tmp."""
        if os.path.exists(path) and path.startswith('/tmp/') and len(path) > 5:
            if os.path.isfile(path) or os.path.islink(path):
                os.unlink(path)
            else:
                shutil.rmtree(path)