#!/bin/sh
#
# $Id$ Copyright (c) 2025 EMC Corporation.
#
# All rights reserved.  This is an UNPUBLISHED work, and
# comprises proprietary and confidential information of EMC.
# Unauthorized use, disclosure, and distribution are strictly
# prohibited.  Use, duplication, or disclosure of the software
# and documentation by the U.S. Government is subject to
# restrictions set forth in a license agreement between the
# Government and EMC or other written agreement specifying
# the Government's rights to use the software and any applicable
# FAR provisions, such as FAR 52.227-19.
#
#
# All rights reserved.
#
# This script is part of the NWUI
#
#
#
#
# ====================================================================
#

nwuihome=`rpm -q --qf "%{INSTPREFIXES}\n" lgtonwui 2> /dev/null`
if [ $? -ne 0 ]; then
    nwuiservhome=`rpm -q --qf "%{INSTPREFIXES}\n" lgtonwuiserv 2> /dev/null`
    MCUI_HOME=$nwuiservhome
else
    MCUI_HOME=$nwuihome
fi
MONITORING_HOME="${MCUI_HOME}/monitoring"
POSTGRESDB_HOME="${MONITORING_HOME}/postgres/16"

rm -rf "$MONITORING_HOME/pgdata"