atexit._clear()
atexit._clear() is a Python function in the Atexit Module category. Clears all registered exit handlers. The syntax is atexit._clear(). Returns: None. A typical example: atexit._clear() # Remove all handlers. A close sibling is atexit.register(), which registers a function to be called at program exit (like cleanup). A close sibling is atexit.unregister(), which removes a function from the list of exit handlers. More about this category: Exit handlers — register, unregister. Related Atexit Module entries: atexit.register(), atexit.unregister(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try atexit._clear() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.