Skip to content

Commit

Permalink
Explicit delete both
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Nov 19, 2024
1 parent 032cfcd commit a4ff76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobsf/MobSF/views/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ def delete_scan(request, api=False):
# Queue is in progress, cannot delete the task
return send_response({
'deleted': 'A scan can only be deleted after it is completed'}, api)
EnqueuedTask.objects.filter(checksum=md5_hash).all().delete()
# Delete all related DB entries
EnqueuedTask.objects.filter(checksum=md5_hash).all().delete()
RecentScansDB.objects.filter(MD5=md5_hash).delete()
StaticAnalyzerAndroid.objects.filter(MD5=md5_hash).delete()
StaticAnalyzerIOS.objects.filter(MD5=md5_hash).delete()
Expand Down

0 comments on commit a4ff76c

Please sign in to comment.