SCCM: Script to delete package from database

Many times we come across a scenario where we need to delete a package from SQL database. Below is the script to delete a package entry for the same. 
select* from pkgstatus where id=’Package ID’ and sitecode=’SCCM Site Code’
delete from pkgstatus where id=’Package ID’ and sitecode=’SCCM Site Code’

One thought on “SCCM: Script to delete package from database

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s