lib/aerospike/client.rb
def delete(key, options = nil)
      policy = create_policy(options, WritePolicy, default_write_policy)
      command = DeleteCommand.new(@cluster, policy, key)
      execute_command(command)
      command.existed
    end
def delete(key, options = nil)
      policy = create_policy(options, WritePolicy, default_write_policy)
      command = DeleteCommand.new(@cluster, policy, key)
      execute_command(command)
      command.existed
    end
-------------------------------------------------------
 Delete Operations
-------------------------------------------------------

  Deletes record for specified key.

  The policy specifies the transaction timeout.

  If no policy options are provided, +@default_write_policy+ will be used.
  Returns +true+ if a record with corresponding +key+ existed.
  Examples:

  existed = client.delete key, :timeout => 0.001