Remove a directory placed on the directory stack via the pushd shell built-in. See also
pushd
to place a directory on the stack anddirs
to display directory stack contents. More information: https://www.gnu.org/software/bash/manual/html_node/Directory-Stack-Builtins.html.
popd
dirs
):popd +N
dirs
):popd -N
dirs
):popd -n