added support to delete activity records