echo statements added and removed user data for buckets schema
@@ -250,10 +250,17 @@ sqlite_reset_db_fledge() {
fi
if [[ -f $DEFAULT_SQLITE_DB_FILE && $2 != "immediate" ]]; then
- # Remove service schema files
+ # Remove service schema files as per name
schema=$(${SQLITE_SQL} ${DEFAULT_SQLITE_DB_FILE} 'select name from service_schema;')
for f in $schema; do
- rm ${FLEDGE_DATA}/${f}.db*
+ echo "Removing $f service schema..."
+ echo "'${FLEDGE_DATA}/${f}.db'"
+ rm -f ${FLEDGE_DATA}/${f}.db*
+ echo "Removal of $f service schema Done!"
+ if [ -d "${FLEDGE_DATA}/buckets" ]; then
+ echo "Removed user data from ${FLEDGE_DATA}/buckets"
+ rm -rf ${FLEDGE_DATA}/buckets
+ fi
done
fi
