# @(#) rmsite 3.0 22jan94 Morgan_Davis @(#)
#
# rmsite -- deletes a site (and any traffic stored for it)
#

if $argc < 2 then
    echo -n "Name of site to delete: pro-"
    read site
else
    set site=$argv[1]
endif
echo -n "Deleting pro-$site's entry from \$/etc/idfile..."
grep -v pro-$site $/etc/idfile >$tmpdir/idfile.tmp
mv $tmpdir/idfile.tmp $/etc/idfile
echo "done"
if -f $/mdss/pro.$site then rmdir -p $/mdss/pro.$site
echo -n "Edit \$/etc/L.sys to remove pro-$site's entry now? (y/n) "
read pw
if "$pw" = "Y" or "$pw" = "y" then $editor $/etc/L.sys
echo "Update your map file now to remove the connection to pro-$site."
echo "Send the updated map to mapcoord@pro-sol.cts.com ASAP."
unset pw
