A cacheable task stores the output files of a task in order to avoid future processing work. Since your example task has no output files it makes no sense to make it a cacheable task (there’s nothing to cache from a delete operation).
Perhaps one of your other tasks is a better example to work from?