# AODestroy
Destroys an application ordering. 
## Synopsis
```
#include "petscao.h" 
PetscErrorCode AODestroy(AO *ao)
```
Collective


## Input Parameters

- ***ao -*** the application ordering context





## See Also
 [](sec_ao), `AO`, `AOCreate()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/interface/ao.c.html#AODestroy">src/vec/is/ao/interface/ao.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/impls/basic/aobasic.c.html#AODestroy_Basic">AODestroy_Basic in src/vec/is/ao/impls/basic/aobasic.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/impls/mapping/aomapping.c.html#AODestroy_Mapping">AODestroy_Mapping in src/vec/is/ao/impls/mapping/aomapping.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/is/ao/impls/memscalable/aomemscalable.c.html#AODestroy_MemoryScalable">AODestroy_MemoryScalable in src/vec/is/ao/impls/memscalable/aomemscalable.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/ao/interface/ao.c)


[Index of all AO routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
