To avoid breaking projects that may depend on a package, GitHub Package Registry no longer supports package deletion or deleting a version of a package.
GitHub has partnered with npm for token scanning. This protects users from accidentally committing npm tokens into their public repositories.
For more information on token scanning
For more information on partnering with GitHub on token scanning