Delete

triangle-exclamation

Delete order

circle-exclamation

Reason for this is that some data is dependent on other data.

Achievements are dependent on stat types, and stat types are dependent on categories. If you try to delete a category first and some stat type will depend on it, you will get an SQL error.

Correct order:

  1. Delete achievement

  2. Delete stat type

  3. Delete category

Delete Events

circle-exclamation

Deleting achievements

-- @param key string - unique key of the achievement
TriggerEvent('rcore_stats:api:deleteAchievement', key)

-- Example to delete the achievement "basket_hoops_1"
TriggerEvent('rcore_stats:api:deleteAchievement', "basket_hoops_1")

Deleting stat types

Deleting categories

Last updated

Was this helpful?