Skip to content

Instantly share code, notes, and snippets.

@scottwalters
Created September 22, 2011 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottwalters/1235931 to your computer and use it in GitHub Desktop.
Save scottwalters/1235931 to your computer and use it in GitHub Desktop.
delete from asset where assetId in (select assetId from assetData where assetData.tagId = '----------your tag here--------');
delete from wobject where assetId in (select assetId from assetData where assetData.tagId = '----------your tag here--------');
delete from --------your-custom-table-here------ where assetId in (select assetId from assetData where assetData.tagId = '----------your tag here--------');
delete from assetData where assetData.tagId = '----------your tag here--------';
delete from assetVersionTag where tagId = '----------your tag here-----------';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment