Wrote logic to delete, update logic apps with RM data. Also includes minor clean ups.