This function removes elements from Salesforce data parsed to a list where the object type and the record url persists because they were attributes on the record and not part of the requested information.
drop_attributes(x, object_name_append = FALSE, object_name_as_col = FALSE)
list
; a list to be cleaned.
logical
; whether to include the object type
(e.g. Account or Contact) as part of the column names (e.g. Account.Name).
logical
; whether to include the object type
(e.g. Account or Contact) as a new column.
list
containing no 'attributes' elements.