why not just do:

    rm -rf $persistent_dir/*http*

also please add an explicit check for $persistent_dir:

    [ -n "$persistent_dir" ] && rm -rf $persistent_dir/*http*

(just in case $persistent_dir is empty and you remove stuff in /)