You would have to remove the character itself mentioned in data/characters and then any other mentions of that character, that be in cutsceens, diolouge, and other stuff. ANY time that character's data is called you would have to remove that call/mention.
The best method to do this is well... just try to delete the character and see what breaks, then try and patch it that way.
[If the character still shows up with just the data with that character was removed, not the schedules data and the xnb file, then you would have to remove those via content patcher ( I thinks with loading an empty file instead then remove any mentions)]
Here is a code snippet for removing the character data itself. (not the schedules data or xnb)
C#:
private void OnAssetRequested(object sender, AssetRequestedEventArgs e)
{
if (e.NameWithoutLocale.IsEquivalentTo("Data/Characters"))
{
e.Edit(asset =>
{
var data = asset.AsDictionary<string, CharacterData>().Data;
data.Remove([characternamehere])
});
}
}
For more info on how to do this,
Creating SMAPI mods
stardewvalleywiki.com
Mods for Stardew Valley using SMAPI. Contribute to Pathoschild/StardewMods development by creating an account on GitHub.
github.com
(oh yeah and if you want to totally remove that characters files and EVERYTHING related to it you would have to uh... do that with content patcher. Thats a lot of files so uh, I would reccomend the bare minimum.)