Skip to content

deleteProfile

Ben edited this page Aug 16, 2022 · 1 revision

Deletes a TRP3 profile

TRP3_API.profile.deleteProfile(profileID)

Arguments

  • profileID: The ID given to your profile by TRP3.

Example

Use a profileID to delete an inactive profile. You can't delete the currently active profile, the example requires you to switch profiles in-game. Use caution with this function.

local currentProfile = TRP3_API.profile.getPlayerCurrentProfileID()
--must swap profiles before deleting the profile, be ABSOLUTELY sure you want to delete the targeted profile
TRP3_API.profile.deleteProfile(currentProfile)

Clone this wiki locally