Possible retention settings are as below, see here
You can delete up to an offset, from the command line, with kafka-delete-records-sh