# phpman > man > dmmp_flush_mpath(3)

[dmmp_flush_mpath(3)](https://www.chedong.com/phpMan.php/man/dmmpflushmpath/3/markdown)         Device Mapper Multipath API - libdmmp Manual         [dmmp_flush_mpath(3)](https://www.chedong.com/phpMan.php/man/dmmpflushmpath/3/markdown)



## NAME
       dmmp_flush_mpath - Flush specified multipath device map if unused.

## SYNOPSIS
       **int** **dmmp**___**flush**___**mpath** **(struct** **dmmp**___**context** *****_ctx_**,** **const** **char** *****_mpath_name_**);**

## ARGUMENTS
       ctx         Pointer  of 'struct dmmp_context'.  If this pointer is NULL, your program will be
                   terminated by assert.

       mpath_name  const char *. The name of multipath device map.

## DESCRIPTION
       Flush a multipath device map specified as parameter, if unused.

## RETURN
       int. Valid error codes are:

       * DMMP_OK

       * DMMP_ERR_BUG

       * DMMP_ERR_NO_MEMORY

       * DMMP_ERR_NO_DAEMON

       * DMMP_ERR_MPATH_BUSY

       * DMMP_ERR_MPATH_NOT_FOUND

       * DMMP_ERR_INVALID_ARGUMENT

       * DMMP_ERR_PERMISSION_DENY

       Error number could be converted to string by **dmmp**___**strerror**.



March 2018                                dmmp_flush_mpath                       [dmmp_flush_mpath(3)](https://www.chedong.com/phpMan.php/man/dmmpflushmpath/3/markdown)
