Pigs are susceptible to the deadly infectious disease known as African swine fever (ASF), which is brought on by the African swine fever virus (ASFV). As such, prompt and precise disease detection is essential. Deletion of the virulence-related genes MGF-505/360 and EP402R generated from the virulent genotype II virus significantly reduces its virulence, and animal tests using one of the recombinant viruses show great lethality and transmissibility in pigs. The isothermal technique known as recombinase polymerase amplification (RPA) is perfect for rapid in-field detection. To accurately identify ASFV MGF-505R gene-deleted mutants and assess the complex infection situation of ASF, RPA assays in conjunction with real-time fluorescent detection (real-time RPA assay) and lateral flow dipstick (RPA-LFD assay) were created. These innovative methods allow for the direct detection of ASFV from pigs, offering in-field pathogen detection, timely disease management, and satisfying animal quarantine requirements. The specific primers and probes were designed against conserved regions of ASFV B646L and MGF-505R genes. Using recombinant plasmid DNA containing ASFV MGF-505R gene-deleted mutants as a template, the sensitivity of both ASF real-time RPA and ASF RPA-LFD assays were demonstrated to be 10 copies per reaction within 20 min at 37 degrees C. Neither assay had cross-reactions with CSFV, PRRSV, PPV, PRV, ot PCV2, common viruses seen in pigs, indicating that these methods were highly specific for ASFV. The evaluation of the performance of ASFV real-time RPA and ASFV RPA-LFD assays with clinical samples (n = 453) demonstrated their ability to specifically detect ASFV or MGF-505R gene-deleted mutants in samples of pig feces, ham, fresh pork, and blood. Both assays exhibited the same diagnostic rate as the WOAH-recommended real-time fluorescence PCR, highlighting their reliability and validity. These assays offer a simple, cost-effective, rapid, and sensitive method for on-site identification of ASFV MGF-505R gene-deleted mutants. As a promising alternative to real-time PCR, they have the potential to significantly enhance the prevention and control of ASF in field settings.