Does discourse automatically remove inactive members?

is it possible to query who is in the query to be cleaned up before enabling this function?