Updating clear command to use prefixes