#NEWLINE# def db_remove( name , user = None , host = None , port = None , maintenance_db = None , password = None , runas = None ) : #NEWLINE# #INDENT# "\n    Removes a databases from the Postgres server.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' postgres.db_remove 'dbname'\n    " #NEWLINE# query = 'DROP DATABASE "{0}"' . format ( name ) #NEWLINE# ret = _psql_prepare_and_run ( [ '-c' , query ] , user = user , host = host , port = port , runas = runas , maintenance_db = maintenance_db , password = password ) #NEWLINE# return ( ret [ 'retcode' ] == 0 )