Individual sourcetypes cannot be deleted. Data is deleted by the bucket, which is a subset of an index. When a bucket is deleted, all events in that bucket are removed from the system. The delete command does not delete data. It merely hides it from view. There is no backend command to delete data. If you are fortunate, the undesired sourcetypes are the only ones in their respective indexes. In that case you can set the frozenTimePeriodInSecs for the index(es) to 1 and wait for Splunk to delete the buckets in the index(es). If you are like most sites and have a mixture of sourcetypes in your indexes then it becomes more of a challenge. One option: Copy the sourcetypes you wish to keep into a different index using the collect command. This will impact your ingestion license. Set frozenTimePeriodInSecs on the original index to 1 and wait for buckets to be deleted. This will delete everything in the index. On-prem environments can use the clean CLI command to delete the index. Revert the frozenTimePeriodInSecs setting. Use the collect command to copy the desired data back to the original index. This avoids having to change the queries that use that index name and will impact your ingestion license (again). In an on-prem environment, you can rename the index to the original name. See https://docs.splunk.com/Documentation/Splunk/9.3.0/Indexer/RemovedatafromSplunk#Remove_all_data_from_one_or_all_indexes for more information.
... View more