You just need to use the ORM methods in order to search for the values you want and then delete them. So for example:
pool = Pool()
Model = pool.get('your.model.name')
records = Model.search([('status', '=', 'search_value')])
Model.delete(records)
In order to create new ones just use a the create method with a list of dictionaries. Each dictionary key must be the name of the field, and their value the value you want yo set. So for example:
values = [{'state': 'one'}, {'state': 'two'}]
Model.create(values)
Will create two records, one with state == 'one' and the other with state == 'two'