remove basedir