This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):
If the cleanup was successful.
If any error occurs, the type of error indicated by the status value.