You can create a VF page for capture the user input. From your controller, you can call a batch process using database.executeBatch(Batch Class Instance) statement.
in start method of batch, fetch all teh records using SOQL query like Select Id from Account where CreatedDate > StarteDate and CreatedDate < endDate
in batch's execute method, simply delete these records using database.delete(scope, false) statement.
In a batch class, you can specify a constructor. You can have this constructor take parameters in which to use when the execute method calls a query to execute the batch over.
From your controller, you can call a batch process using database.executeBatch(Batch Class Instance) statement.
in start method of batch, fetch all teh records using SOQL query like
Select Id from Account where CreatedDate > StarteDate and CreatedDate < endDate
in batch's execute method, simply delete these records using database.delete(scope, false) statement.
In a batch class, you can specify a constructor. You can have this constructor take parameters in which to use when the execute method calls a query to execute the batch over.