class Attio::Internal::Record

def destroy(**opts)

Override destroy to use correct path
def destroy(**opts)
  raise InvalidRequestError, "Cannot destroy a record without an ID" unless persisted?
  raise InvalidRequestError, "Cannot destroy without object context" unless object_api_slug
  self.class.send(:execute_request, :DELETE, resource_path, {}, opts)
  @attributes.clear
  @changed_attributes.clear
  @id = nil
  freeze
  true
end